]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gccrs: privacy reporter should be permissive of error types
authorPhilip Herron <herron.philip@googlemail.com>
Wed, 29 Mar 2023 13:01:34 +0000 (14:01 +0100)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 16 Jan 2024 17:28:42 +0000 (18:28 +0100)
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
gcc/rust/checks/errors/privacy/rust-privacy-reporter.cc

index f95572d6df9e3c13a14e6ea700f9d15da3e2abc5..1b75791dd6003a6e9ba3f0cb87d8a5e6299549a3 100644 (file)
@@ -201,7 +201,7 @@ PrivacyReporter::check_base_type_privacy (Analysis::NodeMapping &node_mappings,
     case TyTy::INFER:
       return;
     case TyTy::ERROR:
-      rust_unreachable ();
+      return;
     }
 }