X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=compiler%2Frustc_borrowck%2Fsrc%2Ftype_check%2Finput_output.rs;fp=compiler%2Frustc_borrowck%2Fsrc%2Ftype_check%2Finput_output.rs;h=c6b78df9a5ff033db5671483da5f41c53ae772c0;hb=03a8a4ff3e7cf0633ceaf0a5fa8d347cfe49e809;hp=fa9ea769a14f79607e86c7d69dafbec2216b5c1a;hpb=bd39bbb4bb92df439bf6d85470e296cc6a47ffbd;p=rust.git diff --git a/compiler/rustc_borrowck/src/type_check/input_output.rs b/compiler/rustc_borrowck/src/type_check/input_output.rs index fa9ea769a14..c6b78df9a5f 100644 --- a/compiler/rustc_borrowck/src/type_check/input_output.rs +++ b/compiler/rustc_borrowck/src/type_check/input_output.rs @@ -38,7 +38,7 @@ pub(super) fn check_signature_annotation(&mut self, body: &Body<'tcx>) { // so that they represent the view from "inside" the closure. let user_provided_sig = self .instantiate_canonical_with_fresh_inference_vars(body.span, &user_provided_poly_sig); - let user_provided_sig = self.infcx.replace_bound_vars_with_fresh_vars( + let user_provided_sig = self.infcx.instantiate_binder_with_fresh_vars( body.span, LateBoundRegionConversionTime::FnCall, user_provided_sig,