We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
rmeta
1 parent 1461769 commit 644308cCopy full SHA for 644308c
1 file changed
compiler/rustc_metadata/src/rmeta/encoder.rs
@@ -942,6 +942,7 @@ fn should_encode_attrs(def_kind: DefKind) -> bool {
942
| DefKind::AssocConst { .. }
943
| DefKind::Macro(_)
944
| DefKind::Field
945
+ | DefKind::ConstParam
946
| DefKind::Impl { .. } => true,
947
// Tools may want to be able to detect their tool lints on
948
// closures from upstream crates, too. This is used by
@@ -950,7 +951,6 @@ fn should_encode_attrs(def_kind: DefKind) -> bool {
950
951
DefKind::Closure => true,
952
DefKind::SyntheticCoroutineBody => false,
953
DefKind::TyParam
- | DefKind::ConstParam
954
| DefKind::Ctor(..)
955
| DefKind::ExternCrate
956
| DefKind::Use
0 commit comments