]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/trim_split_whitespace.stderr
Rollup merge of #102412 - joboet:dont_panic, r=m-ou-se
[rust.git] / src / tools / clippy / tests / ui / trim_split_whitespace.stderr
1 error: found call to `str::trim` before `str::split_whitespace`
2   --> $DIR/trim_split_whitespace.rs:62:23
3    |
4 LL |     let _ = " A B C ".trim().split_whitespace(); // should trigger lint
5    |                       ^^^^^^^ help: remove `trim()`
6    |
7    = note: `-D clippy::trim-split-whitespace` implied by `-D warnings`
8
9 error: found call to `str::trim_start` before `str::split_whitespace`
10   --> $DIR/trim_split_whitespace.rs:63:23
11    |
12 LL |     let _ = " A B C ".trim_start().split_whitespace(); // should trigger lint
13    |                       ^^^^^^^^^^^^^ help: remove `trim_start()`
14
15 error: found call to `str::trim_end` before `str::split_whitespace`
16   --> $DIR/trim_split_whitespace.rs:64:23
17    |
18 LL |     let _ = " A B C ".trim_end().split_whitespace(); // should trigger lint
19    |                       ^^^^^^^^^^^ help: remove `trim_end()`
20
21 error: found call to `str::trim` before `str::split_whitespace`
22   --> $DIR/trim_split_whitespace.rs:67:37
23    |
24 LL |     let _ = (" A B C ").to_string().trim().split_whitespace(); // should trigger lint
25    |                                     ^^^^^^^ help: remove `trim()`
26
27 error: found call to `str::trim_start` before `str::split_whitespace`
28   --> $DIR/trim_split_whitespace.rs:68:37
29    |
30 LL |     let _ = (" A B C ").to_string().trim_start().split_whitespace(); // should trigger lint
31    |                                     ^^^^^^^^^^^^^ help: remove `trim_start()`
32
33 error: found call to `str::trim_end` before `str::split_whitespace`
34   --> $DIR/trim_split_whitespace.rs:69:37
35    |
36 LL |     let _ = (" A B C ").to_string().trim_end().split_whitespace(); // should trigger lint
37    |                                     ^^^^^^^^^^^ help: remove `trim_end()`
38
39 error: found call to `str::trim` before `str::split_whitespace`
40   --> $DIR/trim_split_whitespace.rs:76:15
41    |
42 LL |     let _ = s.trim().split_whitespace(); // should trigger lint
43    |               ^^^^^^^ help: remove `trim()`
44
45 error: found call to `str::trim` before `str::split_whitespace`
46   --> $DIR/trim_split_whitespace.rs:84:15
47    |
48 LL |     let _ = s.trim().split_whitespace(); // should trigger lint
49    |               ^^^^^^^ help: remove `trim()`
50
51 error: aborting due to 8 previous errors
52