@@ -1037,7 +1037,6 @@ pub struct Resolver<'a> {
10371037 /// and how the `impl Trait` fragments were introduced.
10381038 invocation_parents : FxHashMap < LocalExpnId , ( LocalDefId , ImplTraitContext ) > ,
10391039
1040- next_disambiguator : FxHashMap < ( LocalDefId , DefPathData ) , u32 > ,
10411040 /// Some way to know that we are in a *trait* impl in `visit_assoc_item`.
10421041 /// FIXME: Replace with a more general AST map (together with some other fields).
10431042 trait_impl_items : FxHashSet < LocalDefId > ,
@@ -1230,16 +1229,7 @@ impl ResolverAstLowering for Resolver<'_> {
12301229 self . definitions. def_key( self . node_id_to_def_id[ & node_id] ) ,
12311230 ) ;
12321231
1233- // Find the next free disambiguator for this key.
1234- let next_disambiguator = & mut self . next_disambiguator ;
1235- let next_disambiguator = |parent, data| {
1236- let next_disamb = next_disambiguator. entry ( ( parent, data) ) . or_insert ( 0 ) ;
1237- let disambiguator = * next_disamb;
1238- * next_disamb = next_disamb. checked_add ( 1 ) . expect ( "disambiguator overflow" ) ;
1239- disambiguator
1240- } ;
1241-
1242- let def_id = self . definitions . create_def ( parent, data, expn_id, next_disambiguator, span) ;
1232+ let def_id = self . definitions . create_def ( parent, data, expn_id, span) ;
12431233
12441234 // Some things for which we allocate `LocalDefId`s don't correspond to
12451235 // anything in the AST, so they don't have a `NodeId`. For these cases
@@ -1406,7 +1396,6 @@ impl<'a> Resolver<'a> {
14061396 def_id_to_node_id,
14071397 placeholder_field_indices : Default :: default ( ) ,
14081398 invocation_parents,
1409- next_disambiguator : Default :: default ( ) ,
14101399 trait_impl_items : Default :: default ( ) ,
14111400 legacy_const_generic_args : Default :: default ( ) ,
14121401 item_generics_num_lifetimes : Default :: default ( ) ,
0 commit comments