Skip to content
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
Closed as not planned
@jyn514

Description

@jyn514
$ 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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions