]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_borrowck/src/type_check/mod.rs
Erase regions from CallArgument, add test + bless
[rust.git] / compiler / rustc_borrowck / src / type_check / mod.rs
index dc0f0e7cd3c4c1e46a9adb36c02083a3d31037b9..42c92e56e1623fd055409f6e6db85c23c28b4b09 100644 (file)
@@ -1630,7 +1630,7 @@ fn check_call_inputs(
 
             let op_arg_ty = self.normalize(op_arg_ty, term_location);
             let category = if from_hir_call {
-                ConstraintCategory::CallArgument(func_ty)
+                ConstraintCategory::CallArgument(self.infcx.tcx.erase_regions(func_ty))
             } else {
                 ConstraintCategory::Boring
             };