about summary refs log tree commit diff
path: root/src/tools/clippy/tests/ui/str_split.stderr
blob: c4eca81004c58ae6963453e54032c4fad54e0614 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
error: using `str.trim().split()` with hard-coded newlines
  --> tests/ui/str_split.rs:60:13
   |
LL |     let _ = s1.trim().split('\n');
   |             ^^^^^^^^^^^^^^^^^^^^^ help: use `str.lines()` instead: `s1.lines()`
   |
   = note: `-D clippy::str-split-at-newline` implied by `-D warnings`
   = help: to override `-D warnings` add `#[allow(clippy::str_split_at_newline)]`

error: using `str.trim().split()` with hard-coded newlines
  --> tests/ui/str_split.rs:63:13
   |
LL |     let _ = s1.trim().split("\n");
   |             ^^^^^^^^^^^^^^^^^^^^^ help: use `str.lines()` instead: `s1.lines()`

error: using `str.trim().split()` with hard-coded newlines
  --> tests/ui/str_split.rs:65:13
   |
LL |     let _ = s1.trim().split("\r\n");
   |             ^^^^^^^^^^^^^^^^^^^^^^^ help: use `str.lines()` instead: `s1.lines()`

error: using `str.trim().split()` with hard-coded newlines
  --> tests/ui/str_split.rs:69:13
   |
LL |     let _ = s2.trim().split('\n');
   |             ^^^^^^^^^^^^^^^^^^^^^ help: use `str.lines()` instead: `s2.lines()`

error: using `str.trim().split()` with hard-coded newlines
  --> tests/ui/str_split.rs:72:13
   |
LL |     let _ = s2.trim().split("\n");
   |             ^^^^^^^^^^^^^^^^^^^^^ help: use `str.lines()` instead: `s2.lines()`

error: using `str.trim().split()` with hard-coded newlines
  --> tests/ui/str_split.rs:74:13
   |
LL |     let _ = s2.trim().split("\r\n");
   |             ^^^^^^^^^^^^^^^^^^^^^^^ help: use `str.lines()` instead: `s2.lines()`

error: using `str.trim().split()` with hard-coded newlines
  --> tests/ui/str_split.rs:79:13
   |
LL |     let _ = s3.trim().split('\n');
   |             ^^^^^^^^^^^^^^^^^^^^^ help: use `str.lines()` instead: `s3.lines()`

error: using `str.trim().split()` with hard-coded newlines
  --> tests/ui/str_split.rs:82:13
   |
LL |     let _ = s3.trim().split("\n");
   |             ^^^^^^^^^^^^^^^^^^^^^ help: use `str.lines()` instead: `s3.lines()`

error: using `str.trim().split()` with hard-coded newlines
  --> tests/ui/str_split.rs:84:13
   |
LL |     let _ = s3.trim().split("\r\n");
   |             ^^^^^^^^^^^^^^^^^^^^^^^ help: use `str.lines()` instead: `s3.lines()`

error: using `str.trim().split()` with hard-coded newlines
  --> tests/ui/str_split.rs:88:13
   |
LL |     let _ = make_str!(s1).trim().split('\n');
   |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `str.lines()` instead: `make_str!(s1).lines()`

error: aborting due to 10 previous errors