Open ofek opened 1 year ago
This issue hit us in real code - this build-time debuggability check did not trigger the lint on debug builds, but did when we went to produce user builds.
It would definitely be preferable if eq_op
did not consider build-time-varying-expressions (cfg predicates, environment variables, includes, etc) did not count as their expanded variant for purposes of this lint.
Summary
Lint: https://rust-lang.github.io/rust-clippy/master/index.html#/eq_op
It appears that now checks occur after evaluation of environment variables
Version known to work correctly:
Output:
Reproducer
https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=8da4aa4e55400c911f26f2f17787bf3f
Version
Additional Labels
No response