[gcc r14-7433] gccrs: privacy reporter should be permissive of error types

Arthur Cohen cohenarthur@gcc.gnu.org
Tue Jan 16 17:34:20 GMT 2024


https://gcc.gnu.org/g:f4f50c7ce902afbc46d192963237c025d4c721e0

commit r14-7433-gf4f50c7ce902afbc46d192963237c025d4c721e0
Author: Philip Herron <herron.philip@googlemail.com>
Date:   Wed Mar 29 14:01:34 2023 +0100

    gccrs: privacy reporter should be permissive of error types
    
    gcc/rust/ChangeLog:
    
            * checks/errors/privacy/rust-privacy-reporter.cc
            (PrivacyReporter::check_base_type_privacy): allow error types to be permissive
    
    Signed-off-by: Philip Herron <herron.philip@googlemail.com>a

Diff:
---
 gcc/rust/checks/errors/privacy/rust-privacy-reporter.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/rust/checks/errors/privacy/rust-privacy-reporter.cc b/gcc/rust/checks/errors/privacy/rust-privacy-reporter.cc
index f95572d6df9..1b75791dd60 100644
--- a/gcc/rust/checks/errors/privacy/rust-privacy-reporter.cc
+++ b/gcc/rust/checks/errors/privacy/rust-privacy-reporter.cc
@@ -201,7 +201,7 @@ PrivacyReporter::check_base_type_privacy (Analysis::NodeMapping &node_mappings,
     case TyTy::INFER:
       return;
     case TyTy::ERROR:
-      rust_unreachable ();
+      return;
     }
 }


More information about the Gcc-cvs mailing list