From e11575e9703d520a90196f2021b0b2dd987bfffa Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Sat, 16 Dec 2023 18:26:19 -0800 Subject: [PATCH] Ignore uninhabited_references clippy lint 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 --- src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib.rs b/src/lib.rs index 5724f29284..0341789e2d 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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,