about summary refs log tree commit diff
path: root/compiler/rustc_errors/src/lib.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-10-01 19:54:55 +0000
committerbors <bors@rust-lang.org>2022-10-01 19:54:55 +0000
commit57f097ea25f2c05f424fc9b9dc50dbd6d399845c (patch)
tree54b2bb2968147e1c6c3e422a18622192334d2ba7 /compiler/rustc_errors/src/lib.rs
parent56a35bc906be1250a76fdb9a4b70e9261e10aec5 (diff)
parentfec53fd9db276d34d8d17701aeb3e81576d761fe (diff)
downloadrust-57f097ea25f2c05f424fc9b9dc50dbd6d399845c.tar.gz
rust-57f097ea25f2c05f424fc9b9dc50dbd6d399845c.zip
Auto merge of #102236 - cjgillot:compute_lint_levels_by_def, r=oli-obk
Compute lint levels by definition

Second attempt to https://github.com/rust-lang/rust/pull/101620.

I think that I have removed the perf regression.
Diffstat (limited to 'compiler/rustc_errors/src/lib.rs')
-rw-r--r--compiler/rustc_errors/src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_errors/src/lib.rs b/compiler/rustc_errors/src/lib.rs
index c8711ec6e25..7c312da6279 100644
--- a/compiler/rustc_errors/src/lib.rs
+++ b/compiler/rustc_errors/src/lib.rs
@@ -1211,7 +1211,7 @@ impl HandlerInner {
 
         if let Some(expectation_id) = diagnostic.level.get_expectation_id() {
             self.suppressed_expected_diag = true;
-            self.fulfilled_expectations.insert(expectation_id);
+            self.fulfilled_expectations.insert(expectation_id.normalize());
         }
 
         if matches!(diagnostic.level, Warning(_))