diff options
| author | lcnr <rust@lcnr.de> | 2023-10-18 13:57:19 +0200 |
|---|---|---|
| committer | lcnr <rust@lcnr.de> | 2023-10-18 13:57:19 +0200 |
| commit | 306a7ea8b40acadbb630dbf8322b59e855c73fdc (patch) | |
| tree | 4660d7df26e1bdf4233a6361903343b8f9120afc /src | |
| parent | 6d7160ce97f4bbbd44991a7325077e08214e0ce2 (diff) | |
| download | rust-306a7ea8b40acadbb630dbf8322b59e855c73fdc.tar.gz rust-306a7ea8b40acadbb630dbf8322b59e855c73fdc.zip | |
AliasTy::new instead of tcx method
Diffstat (limited to 'src')
| -rw-r--r-- | src/tools/clippy/clippy_utils/src/ty.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/clippy/clippy_utils/src/ty.rs b/src/tools/clippy/clippy_utils/src/ty.rs index 2d305a63eca..673b259523e 100644 --- a/src/tools/clippy/clippy_utils/src/ty.rs +++ b/src/tools/clippy/clippy_utils/src/ty.rs @@ -1133,7 +1133,7 @@ pub fn make_projection<'tcx>( #[cfg(debug_assertions)] assert_generic_args_match(tcx, assoc_item.def_id, args); - Some(tcx.mk_alias_ty(assoc_item.def_id, args)) + Some(ty::AliasTy::new(tcx, assoc_item.def_id, args)) } helper( tcx, |
