about summary refs log tree commit diff
path: root/compiler/rustc_resolve/src
diff options
context:
space:
mode:
authorpierwill <pierwill@users.noreply.github.com>2022-01-25 17:40:10 -0600
committerpierwill <pierwill@users.noreply.github.com>2022-01-25 17:44:45 -0600
commitf5fe6cd27748d519f8c0751b62bc008595736733 (patch)
treef3b41a2669b8221972923fe4e75f7e34cf1585d1 /compiler/rustc_resolve/src
parent92ed8747f255b2695c33b64982e6959711a72cb9 (diff)
downloadrust-f5fe6cd27748d519f8c0751b62bc008595736733.tar.gz
rust-f5fe6cd27748d519f8c0751b62bc008595736733.zip
Return an indexmap in `all_local_trait_impls` query
The data structure previously used here required Ord.
As part of #90317, we do not want DefId to implement Ord.
Diffstat (limited to 'compiler/rustc_resolve/src')
-rw-r--r--compiler/rustc_resolve/src/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_resolve/src/lib.rs b/compiler/rustc_resolve/src/lib.rs
index f6625ac021b..d06fc159285 100644
--- a/compiler/rustc_resolve/src/lib.rs
+++ b/compiler/rustc_resolve/src/lib.rs
@@ -67,7 +67,7 @@ use rustc_span::{Span, DUMMY_SP};
 
 use smallvec::{smallvec, SmallVec};
 use std::cell::{Cell, RefCell};
-use std::collections::{BTreeMap, BTreeSet};
+use std::collections::BTreeSet;
 use std::ops::ControlFlow;
 use std::{cmp, fmt, iter, mem, ptr};
 use tracing::debug;
@@ -1059,7 +1059,7 @@ pub struct Resolver<'a> {
     item_generics_num_lifetimes: FxHashMap<LocalDefId, usize>,
 
     main_def: Option<MainDefinition>,
-    trait_impls: BTreeMap<DefId, Vec<LocalDefId>>,
+    trait_impls: FxIndexMap<DefId, Vec<LocalDefId>>,
     /// A list of proc macro LocalDefIds, written out in the order in which
     /// they are declared in the static array generated by proc_macro_harness.
     proc_macros: Vec<NodeId>,