File tree Expand file tree Collapse file tree 4 files changed +4
-7
lines changed Expand file tree Collapse file tree 4 files changed +4
-7
lines changed Original file line number Diff line number Diff line change 11use rustc_arena:: TypedArena ;
22use rustc_ast:: CRATE_NODE_ID ;
3- use rustc_data_structures:: fx:: FxIndexMap ;
4- use rustc_data_structures:: fx:: FxIndexSet ;
3+ use rustc_data_structures:: fx:: { FxIndexMap , FxIndexSet } ;
54use rustc_data_structures:: memmap:: Mmap ;
65use rustc_data_structures:: temp_dir:: MaybeTempDir ;
76use rustc_errors:: { DiagCtxt , ErrorGuaranteed } ;
Original file line number Diff line number Diff line change @@ -912,8 +912,6 @@ impl CrateInfo {
912912 . collect ( ) ;
913913 let prefix = if target. is_like_windows && target. arch == "x86" { "_" } else { "" } ;
914914
915- // This loop only adds new items to values of the hash map, so the order in which we
916- // iterate over the values is not important.
917915 info. linked_symbols
918916 . iter_mut ( )
919917 . filter ( |( crate_type, _) | {
Original file line number Diff line number Diff line change @@ -835,12 +835,12 @@ impl From<NestedSpan> for FieldDeclSpan {
835835
836836struct FieldUniquenessCheckContext < ' tcx > {
837837 tcx : TyCtxt < ' tcx > ,
838- seen_fields : FxHashMap < Ident , FieldDeclSpan > ,
838+ seen_fields : FxIndexMap < Ident , FieldDeclSpan > ,
839839}
840840
841841impl < ' tcx > FieldUniquenessCheckContext < ' tcx > {
842842 fn new ( tcx : TyCtxt < ' tcx > ) -> Self {
843- Self { tcx, seen_fields : FxHashMap :: default ( ) }
843+ Self { tcx, seen_fields : FxIndexMap :: default ( ) }
844844 }
845845
846846 /// Check if a given field `ident` declared at `field_decl` has been declared elsewhere before.
Original file line number Diff line number Diff line change @@ -373,7 +373,7 @@ impl LintStore {
373373 None => {
374374 // 1. The tool is currently running, so this lint really doesn't exist.
375375 // FIXME: should this handle tools that never register a lint, like rustfmt?
376- debug ! ( "lints={:?}" , self . by_name. keys ( ) . into_sorted_stable_ord ( ) ) ;
376+ debug ! ( "lints={:?}" , self . by_name) ;
377377 let tool_prefix = format ! ( "{tool_name}::" ) ;
378378
379379 return if self . by_name . keys ( ) . any ( |lint| lint. starts_with ( & tool_prefix) ) {
You can’t perform that action at this time.
0 commit comments