diff options
author | Philip Herron <herron.philip@googlemail.com> | 2023-03-29 14:01:34 +0100 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2024-01-16 18:28:42 +0100 |
commit | f4f50c7ce902afbc46d192963237c025d4c721e0 (patch) | |
tree | 4192732807804a0288c59c6be4bcfb7750346539 | |
parent | 75c8724897283cca386812a7b4755e5a541e7e52 (diff) | |
download | gcc-f4f50c7ce902afbc46d192963237c025d4c721e0.zip gcc-f4f50c7ce902afbc46d192963237c025d4c721e0.tar.gz gcc-f4f50c7ce902afbc46d192963237c025d4c721e0.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
-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 f95572d..1b75791 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; } } |