Skip to content
Snippets Groups Projects
Commit ce6b2121 authored by David Renshaw's avatar David Renshaw
Browse files

rustup: fn_sig() -> closure_sig()

parent 4fcbb21a
No related branches found
No related tags found
No related merge requests found
......@@ -1599,7 +1599,7 @@ fn fn_once_adapter_instance<'a, 'tcx>(
let self_ty = tcx.mk_closure_from_closure_substs(
closure_did, substs);
let sig = tcx.fn_sig(closure_did).subst(tcx, substs.substs);
let sig = substs.closure_sig(closure_did, tcx);
let sig = tcx.erase_late_bound_regions_and_normalize(&sig);
assert_eq!(sig.inputs().len(), 1);
let substs = tcx.mk_substs([
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment