From f4f50c7ce902afbc46d192963237c025d4c721e0 Mon Sep 17 00:00:00 2001 From: Philip Herron Date: Wed, 29 Mar 2023 14:01:34 +0100 Subject: 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 a --- gcc/rust/checks/errors/privacy/rust-privacy-reporter.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc') 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; } } -- cgit v1.1