@@ -52,7 +52,7 @@ use rustc_middle::metadata::ModChild;
52
52
use rustc_middle:: middle:: privacy:: EffectiveVisibilities ;
53
53
use rustc_middle:: query:: Providers ;
54
54
use rustc_middle:: span_bug;
55
- use rustc_middle:: ty:: { self , MainDefinition , RegisteredTools , TyCtxt } ;
55
+ use rustc_middle:: ty:: { self , MainDefinition , RegisteredTools , TyCtxt , TyCtxtFeed } ;
56
56
use rustc_middle:: ty:: { ResolverGlobalCtxt , ResolverOutputs } ;
57
57
use rustc_query_system:: ich:: StableHashingContext ;
58
58
use rustc_session:: lint:: builtin:: PRIVATE_MACRO_USE ;
@@ -1234,7 +1234,7 @@ impl<'tcx> Resolver<'_, 'tcx> {
1234
1234
def_kind : DefKind ,
1235
1235
expn_id : ExpnId ,
1236
1236
span : Span ,
1237
- ) -> LocalDefId {
1237
+ ) -> TyCtxtFeed < ' tcx , LocalDefId > {
1238
1238
let data = def_kind. def_path_data ( name) ;
1239
1239
assert ! (
1240
1240
!self . node_id_to_def_id. contains_key( & node_id) ,
@@ -1245,7 +1245,8 @@ impl<'tcx> Resolver<'_, 'tcx> {
1245
1245
) ;
1246
1246
1247
1247
// FIXME: remove `def_span` body, pass in the right spans here and call `tcx.at().create_def()`
1248
- let def_id = self . tcx . create_def ( parent, name, def_kind) . def_id ( ) ;
1248
+ let feed = self . tcx . create_def ( parent, name, def_kind) ;
1249
+ let def_id = feed. def_id ( ) ;
1249
1250
1250
1251
// Create the definition.
1251
1252
if expn_id != ExpnId :: root ( ) {
@@ -1266,7 +1267,7 @@ impl<'tcx> Resolver<'_, 'tcx> {
1266
1267
}
1267
1268
assert_eq ! ( self . def_id_to_node_id. push( node_id) , def_id) ;
1268
1269
1269
- def_id
1270
+ feed
1270
1271
}
1271
1272
1272
1273
fn item_generics_num_lifetimes ( & self , def_id : DefId ) -> usize {
0 commit comments