mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-06 21:53:46 +00:00
rustc_mir: remove wrong calls to subst_from_frame_and_normalize_erasing_regions.
This commit is contained in:
parent
d4196a7673
commit
b4f217ed7b
@ -67,7 +67,6 @@ impl<'mir, 'tcx, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> {
|
||||
// The src operand does not matter, just its type
|
||||
match src.layout.ty.sty {
|
||||
ty::Closure(def_id, substs) => {
|
||||
let substs = self.subst_from_frame_and_normalize_erasing_regions(substs)?;
|
||||
let instance = ty::Instance::resolve_closure(
|
||||
*self.tcx,
|
||||
def_id,
|
||||
|
@ -77,7 +77,6 @@ impl<'mir, 'tcx, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> {
|
||||
for (i, method) in methods.iter().enumerate() {
|
||||
if let Some((def_id, substs)) = *method {
|
||||
// resolve for vtable: insert shims where needed
|
||||
let substs = self.subst_from_frame_and_normalize_erasing_regions(substs)?;
|
||||
let instance = ty::Instance::resolve_for_vtable(
|
||||
*self.tcx,
|
||||
self.param_env,
|
||||
|
Loading…
Reference in New Issue
Block a user