Skip to content

Commit

Permalink
Also expand weak alias tys inside consts inside expand_weak_alias_tys
Browse files Browse the repository at this point in the history
  • Loading branch information
fmease committed May 10, 2024
1 parent 7c4ac06 commit 35a5be2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/rustc_middle/src/ty/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 35a5be2

Please sign in to comment.