]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/starts_ends_with.stderr
Auto merge of #3603 - xfix:random-state-lint, r=phansch
[rust.git] / tests / ui / starts_ends_with.stderr
index 9921819e0934cdfa571abe2bd09a9aaa20298f0e..ed1ccad9814b400d7fb2f5bbfe792d1919f4781b 100644 (file)
@@ -1,77 +1,77 @@
 error: you should use the `starts_with` method
-  --> $DIR/starts_ends_with.rs:19:5
+  --> $DIR/starts_ends_with.rs:16:5
    |
-19 |     "".chars().next() == Some(' ');
+LL |     "".chars().next() == Some(' ');
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: like this: `"".starts_with(' ')`
    |
    = note: `-D clippy::chars-next-cmp` implied by `-D warnings`
 
 error: you should use the `starts_with` method
-  --> $DIR/starts_ends_with.rs:20:5
+  --> $DIR/starts_ends_with.rs:17:5
    |
-20 |     Some(' ') != "".chars().next();
+LL |     Some(' ') != "".chars().next();
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: like this: `!"".starts_with(' ')`
 
 error: you should use the `starts_with` method
-  --> $DIR/starts_ends_with.rs:25:8
+  --> $DIR/starts_ends_with.rs:22:8
    |
-25 |     if s.chars().next().unwrap() == 'f' { // s.starts_with('f')
+LL |     if s.chars().next().unwrap() == 'f' {
    |        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: like this: `s.starts_with('f')`
 
 error: you should use the `ends_with` method
-  --> $DIR/starts_ends_with.rs:28:8
+  --> $DIR/starts_ends_with.rs:26:8
    |
-28 |     if s.chars().next_back().unwrap() == 'o' { // s.ends_with('o')
+LL |     if s.chars().next_back().unwrap() == 'o' {
    |        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: like this: `s.ends_with('o')`
    |
    = note: `-D clippy::chars-last-cmp` implied by `-D warnings`
 
 error: you should use the `ends_with` method
-  --> $DIR/starts_ends_with.rs:31:8
+  --> $DIR/starts_ends_with.rs:30:8
    |
-31 |     if s.chars().last().unwrap() == 'o' { // s.ends_with('o')
+LL |     if s.chars().last().unwrap() == 'o' {
    |        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: like this: `s.ends_with('o')`
 
 error: you should use the `starts_with` method
   --> $DIR/starts_ends_with.rs:34:8
    |
-34 |     if s.chars().next().unwrap() != 'f' { // !s.starts_with('f')
+LL |     if s.chars().next().unwrap() != 'f' {
    |        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: like this: `!s.starts_with('f')`
 
 error: you should use the `ends_with` method
-  --> $DIR/starts_ends_with.rs:37:8
+  --> $DIR/starts_ends_with.rs:38:8
    |
-37 |     if s.chars().next_back().unwrap() != 'o' { // !s.ends_with('o')
+LL |     if s.chars().next_back().unwrap() != 'o' {
    |        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: like this: `!s.ends_with('o')`
 
 error: you should use the `ends_with` method
-  --> $DIR/starts_ends_with.rs:40:8
+  --> $DIR/starts_ends_with.rs:42:8
    |
-40 |     if s.chars().last().unwrap() != 'o' { // !s.ends_with('o')
+LL |     if s.chars().last().unwrap() != 'o' {
    |        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: like this: `!s.ends_with('o')`
 
 error: you should use the `ends_with` method
-  --> $DIR/starts_ends_with.rs:47:5
+  --> $DIR/starts_ends_with.rs:50:5
    |
-47 |     "".chars().last() == Some(' ');
+LL |     "".chars().last() == Some(' ');
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: like this: `"".ends_with(' ')`
 
 error: you should use the `ends_with` method
-  --> $DIR/starts_ends_with.rs:48:5
+  --> $DIR/starts_ends_with.rs:51:5
    |
-48 |     Some(' ') != "".chars().last();
+LL |     Some(' ') != "".chars().last();
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: like this: `!"".ends_with(' ')`
 
 error: you should use the `ends_with` method
-  --> $DIR/starts_ends_with.rs:49:5
+  --> $DIR/starts_ends_with.rs:52:5
    |
-49 |     "".chars().next_back() == Some(' ');
+LL |     "".chars().next_back() == Some(' ');
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: like this: `"".ends_with(' ')`
 
 error: you should use the `ends_with` method
-  --> $DIR/starts_ends_with.rs:50:5
+  --> $DIR/starts_ends_with.rs:53:5
    |
-50 |     Some(' ') != "".chars().next_back();
+LL |     Some(' ') != "".chars().next_back();
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: like this: `!"".ends_with(' ')`
 
 error: aborting due to 12 previous errors