Skip to content

Commit

Permalink
Ignore uninhabited_references clippy lint
Browse files Browse the repository at this point in the history
    warning: dereferencing a reference to an uninhabited type is undefined behavior
        --> src/gen/visit.rs:2057:11
         |
    2057 |     match *node {}
         |           ^^^^^
         |
         = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninhabited_references
         = note: `-W clippy::uninhabited-references` implied by `-W clippy::all`
         = help: to override `-W clippy::all` add `#[allow(clippy::uninhabited_references)]`

    warning: dereferencing a reference to an uninhabited type is undefined behavior
        --> src/gen/visit_mut.rs:2060:11
         |
    2060 |     match *node {}
         |           ^^^^^
         |
         = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninhabited_references

    warning: dereferencing a reference to an uninhabited type is undefined behavior
        --> src/gen/clone.rs:1038:15
         |
    1038 |         match *self {}
         |               ^^^^^
         |
         = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninhabited_references

    warning: dereferencing a reference to an uninhabited type is undefined behavior
        --> src/gen/debug.rs:1507:15
         |
    1507 |         match *self {}
         |               ^^^^^
         |
         = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninhabited_references

    warning: dereferencing a reference to an uninhabited type is undefined behavior
        --> src/gen/eq.rs:1021:15
         |
    1021 |         match *self {}
         |               ^^^^^
         |
         = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninhabited_references

    warning: dereferencing a reference to an uninhabited type is undefined behavior
        --> src/gen/hash.rs:1357:15
         |
    1357 |         match *self {}
         |               ^^^^^
         |
         = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninhabited_references
  • Loading branch information
dtolnay committed Dec 17, 2023
1 parent 63b1701 commit e11575e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,7 @@
clippy::too_many_arguments,
clippy::too_many_lines,
clippy::trivially_copy_pass_by_ref,
clippy::uninhabited_references,
clippy::uninlined_format_args,
clippy::unnecessary_box_returns,
clippy::unnecessary_unwrap,
Expand Down

0 comments on commit e11575e

Please sign in to comment.