1
Fork 0

Make x.py check work

This commit is contained in:
Eric Holk 2022-08-30 12:39:28 -07:00
parent ddfcca48c6
commit 3c2d20ef0b
7 changed files with 211 additions and 134 deletions

View file

@ -815,7 +815,7 @@ pub(crate) fn assert_assignable<'tcx>(
);
// fn(&T) -> for<'l> fn(&'l T) is allowed
}
(&ty::Dynamic(from_traits, _), &ty::Dynamic(to_traits, _)) => {
(&ty::Dynamic(from_traits, _, _from_kind), &ty::Dynamic(to_traits, _, _to_kind)) => {
for (from, to) in from_traits.iter().zip(to_traits) {
let from =
fx.tcx.normalize_erasing_late_bound_regions(ParamEnv::reveal_all(), from);