We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c6cb992 commit 90b505eCopy full SHA for 90b505e
compiler/rustc_hir_analysis/src/collect.rs
@@ -835,12 +835,12 @@ impl From<NestedSpan> for FieldDeclSpan {
835
836
struct FieldUniquenessCheckContext<'tcx> {
837
tcx: TyCtxt<'tcx>,
838
- seen_fields: FxHashMap<Ident, FieldDeclSpan>,
+ seen_fields: FxIndexMap<Ident, FieldDeclSpan>,
839
}
840
841
impl<'tcx> FieldUniquenessCheckContext<'tcx> {
842
fn new(tcx: TyCtxt<'tcx>) -> Self {
843
- Self { tcx, seen_fields: FxHashMap::default() }
+ Self { tcx, seen_fields: FxIndexMap::default() }
844
845
846
/// Check if a given field `ident` declared at `field_decl` has been declared elsewhere before.
0 commit comments