1
Fork 0

Rename HAS_PROJECTIONS to HAS_ALIASES etc.

This commit is contained in:
León Orell Valerian Liehr 2024-04-04 19:26:17 +02:00
parent 5dbaafdb93
commit 6f17b7f0ab
No known key found for this signature in database
GPG key ID: D17A07215F68E713
12 changed files with 21 additions and 17 deletions

View file

@ -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)));
}
}