This repository was archived by the owner on Nov 24, 2023. It is now read-only.
This repository was archived by the owner on Nov 24, 2023. It is now read-only.
Rustfix discards comments #190
Closed as not planned
Description
$ cat src/lib.rs
extern "C" {
fn xsave64(p: *mut u8, hi: u32, lo: u32)
-> /* comment */ ();
}
$ cargo +nightly clippy --fix -Z unstable-options
$ git diff
diff --git a/src/lib.rs b/src/lib.rs
index e07dbbc..0110132 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -1,6 +1,6 @@
extern "C" {
fn xsave64(p: *mut u8, hi: u32, lo: u32)
- -> /*comment here*/ ();
+ ;
}
@flip1995 suggested that I file a bug against rustfix, not clippy, since the information about comments has been lost by the time clippy sees it.
Metadata
Metadata
Assignees
Labels
No labels