diff options
author | Philip Herron <herron.philip@googlemail.com> | 2023-03-29 14:01:34 +0100 |
---|---|---|
committer | Philip Herron <philip.herron@embecosm.com> | 2023-03-30 16:52:24 +0000 |
commit | 441c1d06b9b4c311eb599c9cf45cc2ce3b65b4b2 (patch) | |
tree | 9f5723f9cfadcbfb7ed15548466e00b11f24c3c3 /gcc | |
parent | 832812bb9cb59a0f05f0f328a8a757fe24b40cad (diff) | |
download | gcc-441c1d06b9b4c311eb599c9cf45cc2ce3b65b4b2.zip gcc-441c1d06b9b4c311eb599c9cf45cc2ce3b65b4b2.tar.gz gcc-441c1d06b9b4c311eb599c9cf45cc2ce3b65b4b2.tar.bz2 |
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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/rust/checks/errors/privacy/rust-privacy-reporter.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/rust/checks/errors/privacy/rust-privacy-reporter.cc b/gcc/rust/checks/errors/privacy/rust-privacy-reporter.cc index ea2ad9f..2f31965 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; } } |