1
Fork 0

eagerly check whether we replace any bound vars

This commit is contained in:
lcnr 2022-06-08 18:45:49 +02:00
parent e61807c6bf
commit 3d26f5a000
3 changed files with 16 additions and 25 deletions

View file

@ -572,7 +572,7 @@ impl<'a, 'tcx> ConfirmContext<'a, 'tcx> {
fn replace_bound_vars_with_fresh_vars<T>(&self, value: ty::Binder<'tcx, T>) -> T
where
T: TypeFoldable<'tcx>,
T: TypeFoldable<'tcx> + Copy,
{
self.fcx.replace_bound_vars_with_fresh_vars(self.span, infer::FnCall, value)
}