mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-10 14:57:14 +00:00
b834dbb2d5
Change naive_bytecount applicability to MaybeIncorrect We can't use `MachineApplicable` here as applying the fix will cause another error because `bytecount` would first have to be added to the Cargo.toml. Example: ``` error: You appear to be counting bytes the naive way --> $DIR/bytecount.rs:5:13 | LL | let _ = x.iter().filter(|&&a| a == 0).count(); // naive byte count | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: Consider using the bytecount crate: `bytecount::count(x, 0)` ``` Just replacing it with the suggestion is not enough. cc #3630 |
||
---|---|---|
.. | ||
src | ||
Cargo.toml | ||
README.md |