Skip to content

Commit 688c6ad

Browse files
authored
Unrolled build for #142922
Rollup merge of #142922 - JonathanBrouwer:fix-rustdoc-comment, r=jdonszelmann Fix comment on NoMangle Fix comment on NoMangle. This was discussed in comments of #142823 (comment) and #142921
2 parents 706f244 + 6ea79a1 commit 688c6ad

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/librustdoc/clean/types.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -753,7 +753,8 @@ impl Item {
753753
.other_attrs
754754
.iter()
755755
.filter_map(|attr| {
756-
// NoMangle is special-cased because cargo-semver-checks uses it
756+
// NoMangle is special cased, as it appears in HTML output, and we want to show it in source form, not HIR printing.
757+
// It is also used by cargo-semver-checks.
757758
if matches!(attr, hir::Attribute::Parsed(AttributeKind::NoMangle(..))) {
758759
Some("#[no_mangle]".to_string())
759760
} else if is_json {

0 commit comments

Comments
 (0)