about summary refs log tree commit diff
diff options
context:
space:
mode:
authorLeón Orell Valerian Liehr <me@fmease.dev>2024-05-11 00:39:42 +0200
committerLeón Orell Valerian Liehr <me@fmease.dev>2024-05-11 00:39:42 +0200
commit35a5be2833a555b15a11280e9ed80f9d90fc0809 (patch)
tree280ea4c23d764570f85ab84b5126ad56d338134a
parent7c4ac0603e9ee5295bc802c90575391288a69a8a (diff)
downloadrust-35a5be2833a555b15a11280e9ed80f9d90fc0809.tar.gz
rust-35a5be2833a555b15a11280e9ed80f9d90fc0809.zip
Also expand weak alias tys inside consts inside `expand_weak_alias_tys`
-rw-r--r--compiler/rustc_middle/src/ty/util.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_middle/src/ty/util.rs b/compiler/rustc_middle/src/ty/util.rs
index f5e973f85da..6d9d0f232d6 100644
--- a/compiler/rustc_middle/src/ty/util.rs
+++ b/compiler/rustc_middle/src/ty/util.rs
@@ -1130,7 +1130,7 @@ impl<'tcx> TypeFolder<TyCtxt<'tcx>> for WeakAliasTypeExpander<'tcx> {
     }
 
     fn fold_const(&mut self, ct: ty::Const<'tcx>) -> ty::Const<'tcx> {
-        if !ct.ty().has_type_flags(ty::TypeFlags::HAS_TY_WEAK) {
+        if !ct.has_type_flags(ty::TypeFlags::HAS_TY_WEAK) {
             return ct;
         }
         ct.super_fold_with(self)