@@ -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 ;
@@ -1251,7 +1251,7 @@ impl<'tcx> Resolver<'_, 'tcx> {
1251
1251
def_kind : DefKind ,
1252
1252
expn_id : ExpnId ,
1253
1253
span : Span ,
1254
- ) -> LocalDefId {
1254
+ ) -> TyCtxtFeed < ' tcx , LocalDefId > {
1255
1255
let data = def_kind. def_path_data ( name) ;
1256
1256
assert ! (
1257
1257
!self . node_id_to_def_id. contains_key( & node_id) ,
@@ -1262,7 +1262,8 @@ impl<'tcx> Resolver<'_, 'tcx> {
1262
1262
) ;
1263
1263
1264
1264
// FIXME: remove `def_span` body, pass in the right spans here and call `tcx.at().create_def()`
1265
- let def_id = self . tcx . create_def ( parent, name, def_kind) . def_id ( ) ;
1265
+ let feed = self . tcx . create_def ( parent, name, def_kind) ;
1266
+ let def_id = feed. def_id ( ) ;
1266
1267
1267
1268
// Create the definition.
1268
1269
if expn_id != ExpnId :: root ( ) {
@@ -1283,7 +1284,7 @@ impl<'tcx> Resolver<'_, 'tcx> {
1283
1284
}
1284
1285
assert_eq ! ( self . def_id_to_node_id. push( node_id) , def_id) ;
1285
1286
1286
- def_id
1287
+ feed
1287
1288
}
1288
1289
1289
1290
fn item_generics_num_lifetimes ( & self , def_id : DefId ) -> usize {
0 commit comments