about summary refs log tree commit diff
path: root/compiler/rustc_mir_transform/src
diff options
context:
space:
mode:
authorJacob Pratt <jacob@jhpratt.dev>2024-04-04 21:16:58 -0400
committerGitHub <noreply@github.com>2024-04-04 21:16:58 -0400
commit58eb6e580316b01cfbd68d9d02c98e1e68daf249 (patch)
tree4a4ddd619aa2b44f9a885b3e372861aebddabbb3 /compiler/rustc_mir_transform/src
parent929e0db6a9a31b6079839df5834ee211d191802f (diff)
parent6f17b7f0aba4e07f5aa202ecb1e95e0e3d97f828 (diff)
downloadrust-58eb6e580316b01cfbd68d9d02c98e1e68daf249.tar.gz
rust-58eb6e580316b01cfbd68d9d02c98e1e68daf249.zip
Rollup merge of #123464 - fmease:rn-has-proj-to-has-aliases, r=compiler-errors
Cleanup: Rename `HAS_PROJECTIONS` to `HAS_ALIASES` etc.

The name of the bitflag `HAS_PROJECTIONS` and of its corresponding method `has_projections` is quite historical dating back to a time when projections were the only kind of alias type.

I think it's time to update it to clear up any potential confusion for newcomers and to reduce unnecessary friction during contributor onboarding.

r? types
Diffstat (limited to 'compiler/rustc_mir_transform/src')
-rw-r--r--compiler/rustc_mir_transform/src/inline.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_mir_transform/src/inline.rs b/compiler/rustc_mir_transform/src/inline.rs
index ab9fa165a20..60513a674af 100644
--- a/compiler/rustc_mir_transform/src/inline.rs
+++ b/compiler/rustc_mir_transform/src/inline.rs
@@ -1077,7 +1077,7 @@ fn try_instance_mir<'tcx>(
         let fields = def.all_fields();
         for field in fields {
             let field_ty = field.ty(tcx, args);
-            if field_ty.has_param() && field_ty.has_projections() {
+            if field_ty.has_param() && field_ty.has_aliases() {
                 return Err("cannot build drop shim for polymorphic type");
             }
         }