Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 44792be

Browse files
committed
fix rebase conflicts
1 parent c6cb992 commit 44792be

File tree

4 files changed

+4
-7
lines changed

4 files changed

+4
-7
lines changed

compiler/rustc_codegen_ssa/src/back/link.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
use rustc_arena::TypedArena;
22
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};
54
use rustc_data_structures::memmap::Mmap;
65
use rustc_data_structures::temp_dir::MaybeTempDir;
76
use rustc_errors::{DiagCtxt, ErrorGuaranteed};

compiler/rustc_codegen_ssa/src/base.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff 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, _)| {

compiler/rustc_hir_analysis/src/collect.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -835,12 +835,12 @@ impl From<NestedSpan> for FieldDeclSpan {
835835

836836
struct FieldUniquenessCheckContext<'tcx> {
837837
tcx: TyCtxt<'tcx>,
838-
seen_fields: FxHashMap<Ident, FieldDeclSpan>,
838+
seen_fields: FxIndexMap<Ident, FieldDeclSpan>,
839839
}
840840

841841
impl<'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.

compiler/rustc_lint/src/context.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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)) {

0 commit comments

Comments
 (0)