@@ -1037,7 +1037,6 @@ pub struct Resolver<'a> {
1037
1037
/// and how the `impl Trait` fragments were introduced.
1038
1038
invocation_parents : FxHashMap < LocalExpnId , ( LocalDefId , ImplTraitContext ) > ,
1039
1039
1040
- next_disambiguator : FxHashMap < ( LocalDefId , DefPathData ) , u32 > ,
1041
1040
/// Some way to know that we are in a *trait* impl in `visit_assoc_item`.
1042
1041
/// FIXME: Replace with a more general AST map (together with some other fields).
1043
1042
trait_impl_items : FxHashSet < LocalDefId > ,
@@ -1230,16 +1229,7 @@ impl ResolverAstLowering for Resolver<'_> {
1230
1229
self . definitions. def_key( self . node_id_to_def_id[ & node_id] ) ,
1231
1230
) ;
1232
1231
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) ;
1243
1233
1244
1234
// Some things for which we allocate `LocalDefId`s don't correspond to
1245
1235
// anything in the AST, so they don't have a `NodeId`. For these cases
@@ -1406,7 +1396,6 @@ impl<'a> Resolver<'a> {
1406
1396
def_id_to_node_id,
1407
1397
placeholder_field_indices : Default :: default ( ) ,
1408
1398
invocation_parents,
1409
- next_disambiguator : Default :: default ( ) ,
1410
1399
trait_impl_items : Default :: default ( ) ,
1411
1400
legacy_const_generic_args : Default :: default ( ) ,
1412
1401
item_generics_num_lifetimes : Default :: default ( ) ,
0 commit comments