Skip to content

Clippy complains about generated code #11

@Ploppz

Description

@Ploppz
warning: unsafe function's docs miss `# Safety` section
  --> src/lib.rs:40:1
   |
40 | mopafy!(Widget);
   | ^^^^^^^^^^^^^^^^
   |
   = note: `#[warn(clippy::missing_safety_doc)]` on by default
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc
   = note: this warning originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)

warning: transmute from a pointer type (`*mut ()`) to a reference type (`&T`)
  --> src/lib.rs:40:1
   |
40 | mopafy!(Widget);
   | ^^^^^^^^^^^^^^^^
   |
   = note: `#[warn(clippy::transmute_ptr_to_ref)]` on by default
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#transmute_ptr_to_ref
   = note: this warning originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)

warning: unsafe function's docs miss `# Safety` section
  --> src/lib.rs:40:1
   |
40 | mopafy!(Widget);
   | ^^^^^^^^^^^^^^^^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc
   = note: this warning originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)

warning: transmute from a pointer type (`*mut ()`) to a reference type (`&mut T`)
  --> src/lib.rs:40:1
   |
40 | mopafy!(Widget);
   | ^^^^^^^^^^^^^^^^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#transmute_ptr_to_ref
   = note: this warning originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)

warning: unsafe function's docs miss `# Safety` section
  --> src/lib.rs:40:1
   |
40 | mopafy!(Widget);
   | ^^^^^^^^^^^^^^^^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc
   = note: this warning originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions