Skip to content

Commit 644308c

Browse files
committed
Encode const params attributes in rmeta
1 parent 1461769 commit 644308c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

compiler/rustc_metadata/src/rmeta/encoder.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -942,6 +942,7 @@ fn should_encode_attrs(def_kind: DefKind) -> bool {
942942
| DefKind::AssocConst { .. }
943943
| DefKind::Macro(_)
944944
| DefKind::Field
945+
| DefKind::ConstParam
945946
| DefKind::Impl { .. } => true,
946947
// Tools may want to be able to detect their tool lints on
947948
// closures from upstream crates, too. This is used by
@@ -950,7 +951,6 @@ fn should_encode_attrs(def_kind: DefKind) -> bool {
950951
DefKind::Closure => true,
951952
DefKind::SyntheticCoroutineBody => false,
952953
DefKind::TyParam
953-
| DefKind::ConstParam
954954
| DefKind::Ctor(..)
955955
| DefKind::ExternCrate
956956
| DefKind::Use

0 commit comments

Comments
 (0)