Also expand weak alias tys inside consts inside expand_weak_alias_tys

This commit is contained in:
León Orell Valerian Liehr 2024-05-11 00:39:42 +02:00
parent 7c4ac0603e
commit 35a5be2833
No known key found for this signature in database
GPG Key ID: D17A07215F68E713

View File

@ -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)