about summary refs log tree commit diff
path: root/compiler/rustc_trait_selection/src/traits/normalize.rs
diff options
context:
space:
mode:
authorLeón Orell Valerian Liehr <me@fmease.dev>2024-04-04 19:26:17 +0200
committerLeón Orell Valerian Liehr <me@fmease.dev>2024-04-04 19:26:17 +0200
commit6f17b7f0aba4e07f5aa202ecb1e95e0e3d97f828 (patch)
treec19af3fa8caa9b96c142f4085be823d5920c1323 /compiler/rustc_trait_selection/src/traits/normalize.rs
parent5dbaafdb9305df5332157e74eaaa55c615aa489f (diff)
downloadrust-6f17b7f0aba4e07f5aa202ecb1e95e0e3d97f828.tar.gz
rust-6f17b7f0aba4e07f5aa202ecb1e95e0e3d97f828.zip
Rename HAS_PROJECTIONS to HAS_ALIASES etc.
Diffstat (limited to 'compiler/rustc_trait_selection/src/traits/normalize.rs')
-rw-r--r--compiler/rustc_trait_selection/src/traits/normalize.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/rustc_trait_selection/src/traits/normalize.rs b/compiler/rustc_trait_selection/src/traits/normalize.rs
index 15bfffef3ce..b4969926f64 100644
--- a/compiler/rustc_trait_selection/src/traits/normalize.rs
+++ b/compiler/rustc_trait_selection/src/traits/normalize.rs
@@ -101,6 +101,8 @@ pub(super) fn needs_normalization<'tcx, T: TypeVisitable<TyCtxt<'tcx>>>(
     value: &T,
     reveal: Reveal,
 ) -> bool {
+    // This mirrors `ty::TypeFlags::HAS_ALIASES` except that we take `Reveal` into account.
+
     let mut flags = ty::TypeFlags::HAS_TY_PROJECTION
         | ty::TypeFlags::HAS_TY_WEAK
         | ty::TypeFlags::HAS_TY_INHERENT