Skip to content

Commit

Permalink
Ignore missing_fields_in_debug clippy lint for Ident
Browse files Browse the repository at this point in the history
    error: manual `Debug` impl does not include all fields
       --> src/fallback.rs:853:1
        |
    853 | / impl Debug for Ident {
    854 | |     // Ident(proc_macro), Ident(r#union)
    855 | |     #[cfg(not(span_locations))]
    856 | |     fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
    ...   |
    872 | |     }
    873 | | }
        | |_^
        |
    note: this field is unused
       --> src/fallback.rs:748:5
        |
    748 |     raw: bool,
        |     ^^^^^^^^^
        = help: consider including all fields in this `Debug` impl
        = help: consider calling `.finish_non_exhaustive()` if you intend to ignore fields
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_fields_in_debug
        = note: `-D clippy::missing-fields-in-debug` implied by `-D clippy::pedantic`
  • Loading branch information
dtolnay committed Jun 3, 2023
1 parent 42f4f23 commit 528e761
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/fallback.rs
Original file line number Diff line number Diff line change
Expand Up @@ -850,6 +850,7 @@ impl Display for Ident {
}
}

#[allow(clippy::missing_fields_in_debug)]
impl Debug for Ident {
// Ident(proc_macro), Ident(r#union)
#[cfg(not(span_locations))]
Expand Down

0 comments on commit 528e761

Please sign in to comment.