Use Instance::resolve_for_vtable instead of Instance::resolve for vtables

This commit is contained in:
bjorn3 2019-02-23 10:30:15 +01:00
parent 739afe75f2
commit 14750ece1a

View File

@ -113,7 +113,7 @@ fn build_vtable<'a, 'tcx: 'a>(
Some(import_function(
tcx,
fx.module,
Instance::resolve(tcx, ParamEnv::reveal_all(), def_id, substs).unwrap(),
Instance::resolve_for_vtable(tcx, ParamEnv::reveal_all(), def_id, substs).unwrap(),
))
})
});