mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-31 14:31:55 +00:00
TyAlias needs encoded constness too, for layout computation in rustdoc
This commit is contained in:
parent
c646c4d403
commit
bef8681a18
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user