Also expand weak alias tys inside consts inside expand_weak_alias_tys
This commit is contained in:
parent
7c4ac0603e
commit
35a5be2833
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue