diff options
| author | bors <bors@rust-lang.org> | 2023-12-31 17:31:09 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-12-31 17:31:09 +0000 |
| commit | e51e98dde6a60637b6a71b8105245b629ac3fe77 (patch) | |
| tree | f1f74e5c4ee1fab7d977b4163da357c82c729d39 /compiler/rustc_errors/src/lib.rs | |
| parent | 67b6975051b83ef2bd28f06e8467470d570aceb3 (diff) | |
| parent | 295d6003acaa8da531248422a9d8567e30aeb52a (diff) | |
| download | rust-e51e98dde6a60637b6a71b8105245b629ac3fe77.tar.gz rust-e51e98dde6a60637b6a71b8105245b629ac3fe77.zip | |
Auto merge of #119251 - Enselic:rustc_lint-query-stability, r=cjgillot
rustc_lint: Enforce `rustc::potential_query_instability` lint Stop allowing `rustc::potential_query_instability` on all of `rustc_lint` and instead allow it on a case-by-case basis if it is safe to do so. In this particular crate, all lints were safe to allow. Part of https://github.com/rust-lang/rust/issues/84447 which is E-help-wanted.
Diffstat (limited to 'compiler/rustc_errors/src/lib.rs')
| -rw-r--r-- | compiler/rustc_errors/src/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_errors/src/lib.rs b/compiler/rustc_errors/src/lib.rs index e436591fdd9..e9507dcfed7 100644 --- a/compiler/rustc_errors/src/lib.rs +++ b/compiler/rustc_errors/src/lib.rs @@ -55,7 +55,7 @@ pub use termcolor::{Color, ColorSpec, WriteColor}; use crate::diagnostic_impls::{DelayedAtWithNewline, DelayedAtWithoutNewline}; use emitter::{is_case_difference, DynEmitter, Emitter, EmitterWriter}; use registry::Registry; -use rustc_data_structures::fx::{FxHashMap, FxHashSet, FxIndexMap, FxIndexSet}; +use rustc_data_structures::fx::{FxHashSet, FxIndexMap, FxIndexSet}; use rustc_data_structures::stable_hasher::{Hash128, StableHasher}; use rustc_data_structures::sync::{Lock, Lrc}; use rustc_data_structures::AtomicRef; @@ -1318,7 +1318,7 @@ impl DiagCtxt { pub fn update_unstable_expectation_id( &self, - unstable_to_stable: &FxHashMap<LintExpectationId, LintExpectationId>, + unstable_to_stable: &FxIndexMap<LintExpectationId, LintExpectationId>, ) { let mut inner = self.inner.borrow_mut(); let diags = std::mem::take(&mut inner.unstable_expect_diagnostics); |
