Skip to content

Commit 49ae52e

Browse files
Fix encoding of link_section and no_mangle cross crate
1 parent 5795086 commit 49ae52e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

compiler/rustc_attr_data_structures/src/encode_cross_crate.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,18 +40,18 @@ impl AttributeKind {
4040
Fundamental { .. } => Yes,
4141
Ignore { .. } => No,
4242
Inline(..) => No,
43-
LinkName { .. } => Yes,
43+
LinkName { .. } => Yes, // Needed for rustdoc
4444
LinkOrdinal { .. } => No,
45-
LinkSection { .. } => No,
45+
LinkSection { .. } => Yes, // Needed for rustdoc
4646
LoopMatch(..) => No,
4747
MacroTransparency(..) => Yes,
4848
Marker(..) => No,
4949
MayDangle(..) => No,
5050
MustUse { .. } => Yes,
5151
Naked(..) => No,
5252
NoImplicitPrelude(..) => No,
53-
NoMangle(..) => No,
54-
NonExhaustive(..) => Yes,
53+
NoMangle(..) => Yes, // Needed for rustdoc
54+
NonExhaustive(..) => Yes, // Needed for rustdoc
5555
OmitGdbPrettyPrinterSection => No,
5656
Optimize(..) => No,
5757
ParenSugar(..) => No,

0 commit comments

Comments
 (0)