diff options
| author | bors <bors@rust-lang.org> | 2019-04-18 07:49:09 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2019-04-18 07:49:09 +0000 |
| commit | b834dbb2d5924c947c3cbe47c863ea5b7470e567 (patch) | |
| tree | 1e8c7bc2e9a32579e248ca018a0a1a1fd43acce4 /src/test/incremental/thinlto | |
| parent | 58e12130e4e8976f16c87190b51d2e5748691536 (diff) | |
| parent | 01ea9bd9d8a98146383cfd482727d090f11d1471 (diff) | |
| download | rust-b834dbb2d5924c947c3cbe47c863ea5b7470e567.tar.gz rust-b834dbb2d5924c947c3cbe47c863ea5b7470e567.zip | |
Auto merge of #3984 - phansch:bytecount_sugg, r=flip1995
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
Diffstat (limited to 'src/test/incremental/thinlto')
0 files changed, 0 insertions, 0 deletions
