eagerly check whether we replace any bound vars
This commit is contained in:
parent
e61807c6bf
commit
3d26f5a000
3 changed files with 16 additions and 25 deletions
|
@ -1526,8 +1526,12 @@ impl<'a, 'tcx> InferCtxt<'a, 'tcx> {
|
|||
value: ty::Binder<'tcx, T>,
|
||||
) -> T
|
||||
where
|
||||
T: TypeFoldable<'tcx>,
|
||||
T: TypeFoldable<'tcx> + Copy,
|
||||
{
|
||||
if let Some(inner) = value.no_bound_vars() {
|
||||
return inner;
|
||||
}
|
||||
|
||||
let mut region_map = BTreeMap::new();
|
||||
let fld_r = |br: ty::BoundRegion| {
|
||||
*region_map
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue