Skip to content

Commit

Permalink
TyAlias needs encoded constness too, for layout computation in rustdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
compiler-errors committed Oct 12, 2022
1 parent c646c4d commit bef8681
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions compiler/rustc_metadata/src/rmeta/encoder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bef8681

Please sign in to comment.