about summary refs log tree commit diff
path: root/compiler/rustc_lint/src/expect.rs
diff options
context:
space:
mode:
authorxFrednet <xFrednet@gmail.com>2022-03-02 18:10:07 +0100
committerxFrednet <xFrednet@gmail.com>2022-03-02 18:10:07 +0100
commit5275d02433c95c577febf76271c35f7d5f86ed4a (patch)
treeb251924430b462c70555d074f43f613dae937c24 /compiler/rustc_lint/src/expect.rs
parentdefc056ccc8d0a64048b65915c9d9b29fd5d4ba2 (diff)
downloadrust-5275d02433c95c577febf76271c35f7d5f86ed4a.tar.gz
rust-5275d02433c95c577febf76271c35f7d5f86ed4a.zip
Use Vec for expectations to have a constant order (RFC-2383)
Diffstat (limited to 'compiler/rustc_lint/src/expect.rs')
-rw-r--r--compiler/rustc_lint/src/expect.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/compiler/rustc_lint/src/expect.rs b/compiler/rustc_lint/src/expect.rs
index 7611b41b97e..e6c9d0b0ab0 100644
--- a/compiler/rustc_lint/src/expect.rs
+++ b/compiler/rustc_lint/src/expect.rs
@@ -1,5 +1,4 @@
 use crate::builtin;
-use rustc_data_structures::fx::FxHashMap;
 use rustc_hir::HirId;
 use rustc_middle::{lint::LintExpectation, ty::TyCtxt};
 use rustc_session::lint::LintExpectationId;
@@ -11,8 +10,7 @@ pub fn check_expectations(tcx: TyCtxt<'_>) {
     }
 
     let fulfilled_expectations = tcx.sess.diagnostic().steal_fulfilled_expectation_ids();
-    let lint_expectations: &FxHashMap<LintExpectationId, LintExpectation> =
-        &tcx.lint_levels(()).lint_expectations;
+    let lint_expectations = &tcx.lint_levels(()).lint_expectations;
 
     for (id, expectation) in lint_expectations {
         if !fulfilled_expectations.contains(id) {