@@ -1183,11 +1183,11 @@ fn collect_miri<'a, 'tcx>(
11831183) {
11841184 let alloc_kind = tcx. alloc_map . lock ( ) . get ( alloc_id) ;
11851185 match alloc_kind {
1186- Some ( GlobalAlloc :: Static ( did ) ) => {
1187- let instance = Instance :: mono ( tcx, did ) ;
1186+ Some ( GlobalAlloc :: Static ( def_id ) ) => {
1187+ let instance = Instance :: mono ( tcx, def_id ) ;
11881188 if should_monomorphize_locally ( tcx, & instance) {
1189- trace ! ( "collecting static {:?}" , did ) ;
1190- output. push ( MonoItem :: Static ( did ) ) ;
1189+ trace ! ( "collecting static {:?}" , def_id ) ;
1190+ output. push ( MonoItem :: Static ( def_id ) ) ;
11911191 }
11921192 }
11931193 Some ( GlobalAlloc :: Memory ( alloc) ) => {
@@ -1263,7 +1263,7 @@ fn collect_const<'a, 'tcx>(
12631263 collect_miri ( tcx, id, output) ;
12641264 }
12651265 }
1266- ConstValue :: Unevaluated ( did , substs) => {
1266+ ConstValue :: Unevaluated ( def_id , substs) => {
12671267 let param_env = ty:: ParamEnv :: reveal_all ( ) ;
12681268 let substs = tcx. subst_and_normalize_erasing_regions (
12691269 param_substs,
@@ -1272,7 +1272,7 @@ fn collect_const<'a, 'tcx>(
12721272 ) ;
12731273 let instance = ty:: Instance :: resolve ( tcx,
12741274 param_env,
1275- did ,
1275+ def_id ,
12761276 substs) . unwrap ( ) ;
12771277
12781278 let cid = GlobalId {
@@ -1283,7 +1283,7 @@ fn collect_const<'a, 'tcx>(
12831283 Ok ( val) => collect_const ( tcx, val, param_substs, output) ,
12841284 Err ( ErrorHandled :: Reported ) => { } ,
12851285 Err ( ErrorHandled :: TooGeneric ) => span_bug ! (
1286- tcx. def_span( did ) , "collection encountered polymorphic constant" ,
1286+ tcx. def_span( def_id ) , "collection encountered polymorphic constant" ,
12871287 ) ,
12881288 }
12891289 }
0 commit comments