You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here is a source file with a function that computes the value of a small set of clauses on 6 Boolean variables.
$ more src/main.rs
fn g(a:bool, b:bool, c:bool, d:bool, e:bool, f:bool) -> bool {
(a && c && f) || (!a && b && !d) || (!b && !c && !e) || (d && e && !f)
}
Running clippy on this file takes ~3 minutes (I believe) due to nonminimal_bool. Many such other Boolean functions cause similar behavior, but here I provide one small example.
$ cargo clippy
Checking test v0.1.0 (/test)
...
warning: `test` (bin "test") generated 1 warning
Finished dev [unoptimized + debuginfo] target(s) in 2m 46s
I couldn't find another other ticket that exposed this issue, so consider this chiefly something to be aware of. To a lesser extent, I would appreciate knowing if there is a way to turn off the specific clippy feature that is causing the runtime to take so long.
Description
Here is a source file with a function that computes the value of a small set of clauses on 6 Boolean variables.
Running
clippy
on this file takes ~3 minutes (I believe) due tononminimal_bool
. Many such other Boolean functions cause similar behavior, but here I provide one small example.I couldn't find another other ticket that exposed this issue, so consider this chiefly something to be aware of. To a lesser extent, I would appreciate knowing if there is a way to turn off the specific clippy feature that is causing the runtime to take so long.
Version
Additional Labels
No response
The text was updated successfully, but these errors were encountered: