This repository was archived by the owner on May 28, 2025. It is now read-only.
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 1
1
use rustc_arena:: TypedArena ;
2
2
use 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 } ;
5
4
use rustc_data_structures:: memmap:: Mmap ;
6
5
use rustc_data_structures:: temp_dir:: MaybeTempDir ;
7
6
use rustc_errors:: { DiagCtxt , ErrorGuaranteed } ;
Original file line number Diff line number Diff line change @@ -912,8 +912,6 @@ impl CrateInfo {
912
912
. collect ( ) ;
913
913
let prefix = if target. is_like_windows && target. arch == "x86" { "_" } else { "" } ;
914
914
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.
917
915
info. linked_symbols
918
916
. iter_mut ( )
919
917
. filter ( |( crate_type, _) | {
Original file line number Diff line number Diff line change @@ -835,12 +835,12 @@ impl From<NestedSpan> for FieldDeclSpan {
835
835
836
836
struct FieldUniquenessCheckContext < ' tcx > {
837
837
tcx : TyCtxt < ' tcx > ,
838
- seen_fields : FxHashMap < Ident , FieldDeclSpan > ,
838
+ seen_fields : FxIndexMap < Ident , FieldDeclSpan > ,
839
839
}
840
840
841
841
impl < ' tcx > FieldUniquenessCheckContext < ' tcx > {
842
842
fn new ( tcx : TyCtxt < ' tcx > ) -> Self {
843
- Self { tcx, seen_fields : FxHashMap :: default ( ) }
843
+ Self { tcx, seen_fields : FxIndexMap :: default ( ) }
844
844
}
845
845
846
846
/// 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 {
373
373
None => {
374
374
// 1. The tool is currently running, so this lint really doesn't exist.
375
375
// 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) ;
377
377
let tool_prefix = format ! ( "{tool_name}::" ) ;
378
378
379
379
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