Skip to content
Permalink
Browse files

rustc_mir: remove wrong calls to subst_from_frame_and_normalize_erasi…

…ng_regions.
  • Loading branch information...
eddyb committed Aug 12, 2019
1 parent d4196a7 commit b4f217ed7b8b2fd0695c3b2278fe1b664f038607
Showing with 0 additions and 2 deletions.
  1. +0 −1 src/librustc_mir/interpret/cast.rs
  2. +0 −1 src/librustc_mir/interpret/traits.rs
@@ -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,

0 comments on commit b4f217e

Please sign in to comment.
You can’t perform that action at this time.