Stop chopping off args for no reason

This commit is contained in:
Michael Goulet 2024-03-30 12:03:29 -04:00
parent ceab6128fa
commit e3025d6a55
3 changed files with 19 additions and 3 deletions

View file

@ -381,8 +381,6 @@ pub fn check_args_compatible<'tcx>(
}
let generics = tcx.generics_of(assoc_item.def_id);
// Chop off any additional args (RPITIT) args
let args = &args[0..generics.count().min(args.len())];
check_args_compatible_inner(tcx, generics, args)
}