Use Instance::resolve_for_vtable instead of Instance::resolve for vtables
This commit is contained in:
parent
739afe75f2
commit
14750ece1a
@ -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(),
|
||||
))
|
||||
})
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user