Skip to content

Commit bef8681

Browse files
TyAlias needs encoded constness too, for layout computation in rustdoc
1 parent c646c4d commit bef8681

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/rustc_metadata/src/rmeta/encoder.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1078,9 +1078,9 @@ fn should_encode_constness(def_kind: DefKind) -> bool {
10781078
| DefKind::ImplTraitPlaceholder
10791079
| DefKind::Impl
10801080
| DefKind::Closure
1081-
| DefKind::Generator => true,
1081+
| DefKind::Generator
1082+
| DefKind::TyAlias => true,
10821083
DefKind::Variant
1083-
| DefKind::TyAlias
10841084
| DefKind::TraitAlias
10851085
| DefKind::ForeignTy
10861086
| DefKind::Field

0 commit comments

Comments
 (0)