We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
tcx.resolve_instance
1 parent 8035fdb commit 2bbc172Copy full SHA for 2bbc172
src/librustc/ty/instance.rs
@@ -278,7 +278,7 @@ impl<'tcx> Instance<'tcx> {
278
def_id: DefId,
279
substs: SubstsRef<'tcx>,
280
) -> Option<Instance<'tcx>> {
281
- tcx.resolve_instance((param_env, def_id, substs))
+ tcx.resolve_instance((tcx.erase_regions(¶m_env), def_id, tcx.erase_regions(&substs)))
282
}
283
284
pub fn resolve_for_fn_ptr(
0 commit comments