Skip to content

Commit 7c51ef9

Browse files
committed
Fix adjacent code
1 parent 3af0280 commit 7c51ef9

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

compiler/rustc_errors/src/emitter.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ use std::path::Path;
1717
use std::sync::Arc;
1818

1919
use derive_setters::Setters;
20-
use rustc_data_structures::fx::{FxHashMap, FxIndexMap, FxIndexSet};
20+
use rustc_data_structures::fx::{FxIndexMap, FxIndexSet};
2121
use rustc_data_structures::sync::{DynSend, IntoDynSyncSend};
2222
use rustc_error_messages::{FluentArgs, SpanLabel};
2323
use rustc_lexer;
@@ -1840,7 +1840,7 @@ impl HumanEmitter {
18401840
!is_cont && line_idx + 1 == annotated_file.lines.len(),
18411841
);
18421842

1843-
let mut to_add = FxHashMap::default();
1843+
let mut to_add = FxIndexMap::default();
18441844

18451845
for (depth, style) in depths {
18461846
// FIXME(#120456) - is `swap_remove` correct?

compiler/rustc_interface/src/interface.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,9 @@ pub(crate) fn parse_check_cfg(dcx: DiagCtxtHandle<'_>, specs: Vec<String>) -> Ch
275275
.expecteds
276276
.entry(name.name)
277277
.and_modify(|v| match v {
278-
ExpectedValues::Some(v) if !values_any_specified => {
278+
ExpectedValues::Some(v) if !values_any_specified =>
279+
{
280+
#[allow(rustc::potential_query_instability)]
279281
v.extend(values.clone())
280282
}
281283
ExpectedValues::Some(_) => *v = ExpectedValues::Any,

compiler/rustc_resolve/src/late.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3934,12 +3934,14 @@ impl<'a, 'ast, 'ra: 'ast, 'tcx> LateResolutionVisitor<'a, 'ast, 'ra, 'tcx> {
39343934
// Move up the non-overlapping bindings to the or-pattern.
39353935
// Existing bindings just get "merged".
39363936
let collected = bindings.pop().unwrap().1;
3937+
#[allow(rustc::potential_query_instability)] // FIXME
39373938
bindings.last_mut().unwrap().1.extend(collected);
39383939
}
39393940
// This or-pattern itself can itself be part of a product,
39403941
// e.g. `(V1(a) | V2(a), a)` or `(a, V1(a) | V2(a))`.
39413942
// Both cases bind `a` again in a product pattern and must be rejected.
39423943
let collected = bindings.pop().unwrap().1;
3944+
#[allow(rustc::potential_query_instability)] // FIXME
39433945
bindings.last_mut().unwrap().1.extend(collected);
39443946

39453947
// Prevent visiting `ps` as we've already done so above.

src/librustdoc/formats/cache.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ pub(crate) struct Cache {
4747

4848
/// Similar to `paths`, but only holds external paths. This is only used for
4949
/// generating explicit hyperlinks to other crates.
50-
pub(crate) external_paths: FxHashMap<DefId, (Vec<Symbol>, ItemType)>,
50+
pub(crate) external_paths: FxIndexMap<DefId, (Vec<Symbol>, ItemType)>,
5151

5252
/// Maps local `DefId`s of exported types to fully qualified paths.
5353
/// Unlike 'paths', this mapping ignores any renames that occur

0 commit comments

Comments
 (0)