]> git.proxmox.com Git - rustc.git/blame - src/tools/clippy/tests/ui/bytecount.stderr
New upstream version 1.23.0+dfsg1
[rustc.git] / src / tools / clippy / tests / ui / bytecount.stderr
CommitLineData
ea8adc8c
XL
1error: You appear to be counting bytes the naive way
2 --> $DIR/bytecount.rs:8:13
3 |
48 | let _ = x.iter().filter(|&&a| a == 0).count(); // naive byte count
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: Consider using the bytecount crate: `bytecount::count(x, 0)`
6 |
7note: lint level defined here
8 --> $DIR/bytecount.rs:4:8
9 |
104 | #[deny(naive_bytecount)]
11 | ^^^^^^^^^^^^^^^
12
13error: You appear to be counting bytes the naive way
14 --> $DIR/bytecount.rs:10:13
15 |
1610 | let _ = (&x[..]).iter().filter(|&a| *a == 0).count(); // naive byte count
17 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: Consider using the bytecount crate: `bytecount::count((&x[..]), 0)`
18
19error: You appear to be counting bytes the naive way
20 --> $DIR/bytecount.rs:22:13
21 |
2222 | let _ = x.iter().filter(|a| b + 1 == **a).count(); // naive byte count
23 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: Consider using the bytecount crate: `bytecount::count(x, b + 1)`
24