Erase regions from CallArgument, add test + bless
This commit is contained in:
parent
dce44faf5b
commit
4e0c27bbfd
5 changed files with 73 additions and 7 deletions
|
@ -1630,7 +1630,7 @@ impl<'a, 'tcx> TypeChecker<'a, 'tcx> {
|
|||
|
||||
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
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue