Rollup merge of #117870 - lcnr:rename-args_ref, r=compiler-errors

`fn args_ref_X` to `fn args_X`
This commit is contained in:
Matthias Krüger
2023-11-13 21:28:55 +01:00
committed by GitHub
5 changed files with 8 additions and 10 deletions

View File

@@ -375,7 +375,7 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> {
// consider a "quick reject". This avoids creating more types
// and so forth that we need to.
let impl_trait_ref = self.tcx().impl_trait_ref(impl_def_id).unwrap();
if !drcx.args_refs_may_unify(obligation_args, impl_trait_ref.skip_binder().args) {
if !drcx.args_may_unify(obligation_args, impl_trait_ref.skip_binder().args) {
return;
}
if self.reject_fn_ptr_impls(