Stop chopping off args for no reason
This commit is contained in:
parent
ceab6128fa
commit
e3025d6a55
3 changed files with 19 additions and 3 deletions
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue