Fix comment on NoMangle

Signed-off-by: Jonathan Brouwer <jonathantbrouwer@gmail.com>
This commit is contained in:
Jonathan Brouwer 2025-06-23 20:24:54 +02:00
parent 42245d34d2
commit 6ea79a13b5
No known key found for this signature in database
GPG key ID: 13619B051B673C52

View file

@ -753,7 +753,8 @@ impl Item {
.other_attrs
.iter()
.filter_map(|attr| {
// NoMangle is special-cased because cargo-semver-checks uses it
// NoMangle is special cased, as it appears in HTML output, and we want to show it in source form, not HIR printing.
// It is also used by cargo-semver-checks.
if matches!(attr, hir::Attribute::Parsed(AttributeKind::NoMangle(..))) {
Some("#[no_mangle]".to_string())
} else if is_json {