diff options
| author | León Orell Valerian Liehr <me@fmease.dev> | 2024-04-04 19:26:17 +0200 |
|---|---|---|
| committer | León Orell Valerian Liehr <me@fmease.dev> | 2024-04-04 19:26:17 +0200 |
| commit | 6f17b7f0aba4e07f5aa202ecb1e95e0e3d97f828 (patch) | |
| tree | c19af3fa8caa9b96c142f4085be823d5920c1323 /compiler/rustc_ty_utils | |
| parent | 5dbaafdb9305df5332157e74eaaa55c615aa489f (diff) | |
| download | rust-6f17b7f0aba4e07f5aa202ecb1e95e0e3d97f828.tar.gz rust-6f17b7f0aba4e07f5aa202ecb1e95e0e3d97f828.zip | |
Rename HAS_PROJECTIONS to HAS_ALIASES etc.
Diffstat (limited to 'compiler/rustc_ty_utils')
| -rw-r--r-- | compiler/rustc_ty_utils/src/layout.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_ty_utils/src/layout.rs b/compiler/rustc_ty_utils/src/layout.rs index 331970ac362..936eb180470 100644 --- a/compiler/rustc_ty_utils/src/layout.rs +++ b/compiler/rustc_ty_utils/src/layout.rs @@ -239,9 +239,9 @@ fn layout_of_uncached<'tcx>( // Arrays and slices. ty::Array(element, mut count) => { - if count.has_projections() { + if count.has_aliases() { count = tcx.normalize_erasing_regions(param_env, count); - if count.has_projections() { + if count.has_aliases() { return Err(error(cx, LayoutError::Unknown(ty))); } } |
