Skip to content

Commit b59322e

Browse files
committed
Suppress diverging_sub_expression clippy lint in generated code
error: sub-expression diverges --> tests/test.rs:233:13 | 233 | unimplemented!() | ^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#diverging_sub_expression = note: `-D clippy::diverging-sub-expression` implied by `-D clippy::all` = note: this error originates in the macro `unimplemented` (in Nightly builds, run with -Z macro-backtrace for more info) error: sub-expression diverges --> tests/test.rs:1257:13 | 1257 | unimplemented!() | ^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#diverging_sub_expression = note: this error originates in the macro `unimplemented` (in Nightly builds, run with -Z macro-backtrace for more info) error: sub-expression diverges --> tests/test.rs:1277:13 | 1277 | return &Thing; | ^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#diverging_sub_expression
1 parent fbd310e commit b59322e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/expand.rs

+1
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ fn lint_suppress_with_body() -> Attribute {
126126
parse_quote! {
127127
#[allow(
128128
clippy::async_yields_async,
129+
clippy::diverging_sub_expression,
129130
clippy::let_unit_value,
130131
clippy::no_effect_underscore_binding,
131132
clippy::shadow_same,

0 commit comments

Comments
 (0)