mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-28 11:07:42 +00:00
Also expand weak alias tys inside consts inside expand_weak_alias_tys
This commit is contained in:
parent
7c4ac0603e
commit
35a5be2833
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user