@@ -1061,7 +1061,6 @@ pub struct Resolver<'a> {
1061
1061
/// and how the `impl Trait` fragments were introduced.
1062
1062
invocation_parents : FxHashMap < LocalExpnId , ( LocalDefId , ImplTraitContext ) > ,
1063
1063
1064
- next_disambiguator : FxHashMap < ( LocalDefId , DefPathData ) , u32 > ,
1065
1064
/// Some way to know that we are in a *trait* impl in `visit_assoc_item`.
1066
1065
/// FIXME: Replace with a more general AST map (together with some other fields).
1067
1066
trait_impl_items : FxHashSet < LocalDefId > ,
@@ -1249,16 +1248,7 @@ impl ResolverAstLowering for Resolver<'_> {
1249
1248
self . definitions. def_key( self . node_id_to_def_id[ & node_id] ) ,
1250
1249
) ;
1251
1250
1252
- // Find the next free disambiguator for this key.
1253
- let next_disambiguator = & mut self . next_disambiguator ;
1254
- let next_disambiguator = |parent, data| {
1255
- let next_disamb = next_disambiguator. entry ( ( parent, data) ) . or_insert ( 0 ) ;
1256
- let disambiguator = * next_disamb;
1257
- * next_disamb = next_disamb. checked_add ( 1 ) . expect ( "disambiguator overflow" ) ;
1258
- disambiguator
1259
- } ;
1260
-
1261
- let def_id = self . definitions . create_def ( parent, data, expn_id, next_disambiguator, span) ;
1251
+ let def_id = self . definitions . create_def ( parent, data, expn_id, span) ;
1262
1252
1263
1253
// Some things for which we allocate `LocalDefId`s don't correspond to
1264
1254
// anything in the AST, so they don't have a `NodeId`. For these cases
@@ -1430,7 +1420,6 @@ impl<'a> Resolver<'a> {
1430
1420
def_id_to_node_id,
1431
1421
placeholder_field_indices : Default :: default ( ) ,
1432
1422
invocation_parents,
1433
- next_disambiguator : Default :: default ( ) ,
1434
1423
trait_impl_items : Default :: default ( ) ,
1435
1424
legacy_const_generic_args : Default :: default ( ) ,
1436
1425
item_generics_num_lifetimes : Default :: default ( ) ,
0 commit comments