TyAlias needs encoded constness too, for layout computation in rustdoc

This commit is contained in:
Michael Goulet 2022-10-12 04:17:21 +00:00
parent c646c4d403
commit bef8681a18

View File

@ -1078,9 +1078,9 @@ fn should_encode_constness(def_kind: DefKind) -> bool {
| DefKind::ImplTraitPlaceholder
| DefKind::Impl
| DefKind::Closure
| DefKind::Generator => true,
| DefKind::Generator
| DefKind::TyAlias => true,
DefKind::Variant
| DefKind::TyAlias
| DefKind::TraitAlias
| DefKind::ForeignTy
| DefKind::Field