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 ea89080 commit 5c5722bCopy full SHA for 5c5722b
1 file changed
compiler/rustc_metadata/src/rmeta/encoder.rs
@@ -943,6 +943,7 @@ fn should_encode_attrs(def_kind: DefKind) -> bool {
943
| DefKind::AssocConst { .. }
944
| DefKind::Macro(_)
945
| DefKind::Field
946
+ | DefKind::ConstParam
947
| DefKind::Impl { .. } => true,
948
// Encoding attrs for `Use` items allows `#[doc(hidden)]` on re-exports
949
// to be read cross-crate, which is needed for diagnostic path selection
@@ -955,7 +956,6 @@ fn should_encode_attrs(def_kind: DefKind) -> bool {
955
956
DefKind::Closure => true,
957
DefKind::SyntheticCoroutineBody => false,
958
DefKind::TyParam
- | DefKind::ConstParam
959
| DefKind::Ctor(..)
960
| DefKind::ExternCrate
961
| DefKind::ForeignMod
0 commit comments