Fix comment on NoMangle
Signed-off-by: Jonathan Brouwer <jonathantbrouwer@gmail.com>
This commit is contained in:
parent
42245d34d2
commit
6ea79a13b5
1 changed files with 2 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue