Remove WithOptconstParam.
This commit is contained in:
parent
0e017fc94a
commit
b275d2c30b
68 changed files with 335 additions and 960 deletions
|
@ -148,8 +148,7 @@ pub(crate) fn mir_inliner_callees<'tcx>(
|
|||
let guard;
|
||||
let body = match (instance, instance.def_id().as_local()) {
|
||||
(InstanceDef::Item(_), Some(def_id)) => {
|
||||
let def = ty::WithOptConstParam::unknown(def_id);
|
||||
steal = tcx.mir_promoted(def).0;
|
||||
steal = tcx.mir_promoted(def_id).0;
|
||||
guard = steal.borrow();
|
||||
&*guard
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue