Also expand weak alias tys inside consts inside expand_weak_alias_tys
This commit is contained in:
@@ -1130,7 +1130,7 @@ impl<'tcx> TypeFolder<TyCtxt<'tcx>> for WeakAliasTypeExpander<'tcx> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn fold_const(&mut self, ct: ty::Const<'tcx>) -> ty::Const<'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;
|
return ct;
|
||||||
}
|
}
|
||||||
ct.super_fold_with(self)
|
ct.super_fold_with(self)
|
||||||
|
|||||||
Reference in New Issue
Block a user