diff options
| author | Oli Scherer <git-spam-no-reply9815368754983@oli-obk.de> | 2022-12-13 10:44:35 +0000 |
|---|---|---|
| committer | Oli Scherer <git-spam-no-reply9815368754983@oli-obk.de> | 2022-12-14 15:36:39 +0000 |
| commit | 1bf80249aee145d9087820dcde0cb49a5a25b57c (patch) | |
| tree | 566c4ca2e7f5992f360f1b3999818e9573f084db /compiler/rustc_lint | |
| parent | 0fe86aa977f8e8f2ebd2e6a6bd9b1a51c959cd4f (diff) | |
| download | rust-1bf80249aee145d9087820dcde0cb49a5a25b57c.tar.gz rust-1bf80249aee145d9087820dcde0cb49a5a25b57c.zip | |
Remove many more cases of `mk_substs_trait` that can now use the iterator scheme`
Diffstat (limited to 'compiler/rustc_lint')
| -rw-r--r-- | compiler/rustc_lint/src/context.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_lint/src/context.rs b/compiler/rustc_lint/src/context.rs index e6a0d7e60ca..40b2588388d 100644 --- a/compiler/rustc_lint/src/context.rs +++ b/compiler/rustc_lint/src/context.rs @@ -1258,7 +1258,7 @@ impl<'tcx> LateContext<'tcx> { tcx.associated_items(trait_id) .find_by_name_and_kind(tcx, Ident::from_str(name), ty::AssocKind::Type, trait_id) .and_then(|assoc| { - let proj = tcx.mk_projection(assoc.def_id, tcx.mk_substs_trait(self_ty, [])); + let proj = tcx.mk_projection(assoc.def_id, [self_ty]); tcx.try_normalize_erasing_regions(self.param_env, proj).ok() }) } |
