inscrutable eval_order_dependence warning (futures related?) #6925
Labels
C-bug
Category: Clippy is not doing the correct thing
I-false-positive
Issue: The lint was triggered on code it shouldn't have
Lint name:
eval_order_dependence
I tried this code:
I expected to see this happen:
The clippy lint explanation says:
In the
fixture_body!
macro, there is no variable declaration, which makes this rule very confusing.The output is wrong regardless, I am not reading and writing to the same variable at all.
Instead, this happened:
Meta
cargo clippy -V
: clippy 0.0.212 (cb75ad5 2021-02-10)rustc -Vv
:Note: the above error message was taken with
-Z macro-backtrace
on nightly:My best guess here is it has something odd to do with the
.await
and futures. It seems just plain wrong.Curiously, this similar macro does not seem to cause this issue:
The text was updated successfully, but these errors were encountered: