about summary refs log tree commit diff
path: root/compiler/rustc_const_eval/src
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_const_eval/src
parent7f695232a80fa1833e2282f2577c5e1ff066bf39 (diff)
downloadrust-bdfeb8f36bb2716eb8f5aca32ba4f81563a6818b.tar.gz
rust-bdfeb8f36bb2716eb8f5aca32ba4f81563a6818b.zip
Remove `weak` alias terminology
Diffstat (limited to 'compiler/rustc_const_eval/src')
-rw-r--r--compiler/rustc_const_eval/src/util/type_name.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_const_eval/src/util/type_name.rs b/compiler/rustc_const_eval/src/util/type_name.rs
index e14cd603c58..30e96ae4143 100644
--- a/compiler/rustc_const_eval/src/util/type_name.rs
+++ b/compiler/rustc_const_eval/src/util/type_name.rs
@@ -56,7 +56,7 @@ impl<'tcx> Printer<'tcx> for AbsolutePathPrinter<'tcx> {
             | ty::Coroutine(def_id, args) => self.print_def_path(def_id, args),
             ty::Foreign(def_id) => self.print_def_path(def_id, &[]),
 
-            ty::Alias(ty::Weak, _) => bug!("type_name: unexpected weak projection"),
+            ty::Alias(ty::Free, _) => bug!("type_name: unexpected free alias"),
             ty::Alias(ty::Inherent, _) => bug!("type_name: unexpected inherent projection"),
             ty::CoroutineWitness(..) => bug!("type_name: unexpected `CoroutineWitness`"),
         }