-
Notifications
You must be signed in to change notification settings - Fork 12.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove PartialOrd
, Ord
from DefId
#90749
Changes from all commits
3360653
8bc7878
a8fc79b
f0fce21
9f0d58f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1089,7 +1089,7 @@ rustc_queries! { | |
} | ||
|
||
/// Return all `impl` blocks in the current crate. | ||
query all_local_trait_impls(_: ()) -> &'tcx BTreeMap<DefId, Vec<LocalDefId>> { | ||
query all_local_trait_impls(_: ()) -> &'tcx FxHashMap<DefId, Vec<LocalDefId>> { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is it possible iteration order matters here? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Possibly... Here are the uses of
There are quite a few There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If the iteration order matters, we may need to use an FxIndexMap and audit how these maps are built. |
||
desc { "local trait impls" } | ||
} | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does any code depend on the iteration order?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes:
rust/compiler/rustc_infer/src/infer/lexical_region_resolve/mod.rs
Line 189 in 181e915
rust/compiler/rustc_infer/src/infer/lexical_region_resolve/mod.rs
Line 229 in 181e915
rust/compiler/rustc_infer/src/infer/lexical_region_resolve/mod.rs
Line 449 in 181e915
rust/compiler/rustc_infer/src/infer/lexical_region_resolve/mod.rs
Line 618 in 181e915
rust/compiler/rustc_trait_selection/src/traits/auto_trait.rs
Line 515 in 181e915