about summary refs log tree commit diff
path: root/compiler/rustc_privacy
diff options
context:
space:
mode:
authorBoxy <rust@boxyuwu.dev>2025-04-24 11:31:33 +0100
committerBoxy <rust@boxyuwu.dev>2025-04-24 11:59:20 +0100
commitbdfeb8f36bb2716eb8f5aca32ba4f81563a6818b (patch)
tree4651a63fdf66bd493f20dc9beceab66973ab044a /compiler/rustc_privacy
parent7f695232a80fa1833e2282f2577c5e1ff066bf39 (diff)
downloadrust-bdfeb8f36bb2716eb8f5aca32ba4f81563a6818b.tar.gz
rust-bdfeb8f36bb2716eb8f5aca32ba4f81563a6818b.zip
Remove `weak` alias terminology
Diffstat (limited to 'compiler/rustc_privacy')
-rw-r--r--compiler/rustc_privacy/src/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_privacy/src/lib.rs b/compiler/rustc_privacy/src/lib.rs
index c7bab828659..48e29c823a2 100644
--- a/compiler/rustc_privacy/src/lib.rs
+++ b/compiler/rustc_privacy/src/lib.rs
@@ -213,7 +213,7 @@ where
                     }
                 }
             }
-            ty::Alias(kind @ (ty::Inherent | ty::Weak | ty::Projection), data) => {
+            ty::Alias(kind @ (ty::Inherent | ty::Free | ty::Projection), data) => {
                 if self.def_id_visitor.skip_assoc_tys() {
                     // Visitors searching for minimal visibility/reachability want to
                     // conservatively approximate associated types like `Type::Alias`
@@ -227,7 +227,7 @@ where
                     data.def_id,
                     match kind {
                         ty::Inherent | ty::Projection => "associated type",
-                        ty::Weak => "type alias",
+                        ty::Free => "type alias",
                         ty::Opaque => unreachable!(),
                     },
                     &LazyDefPathStr { def_id: data.def_id, tcx },