11error: replacing text with itself
2- --> tests/ui/no_effect_replace.rs:6 :13
2+ --> tests/ui/no_effect_replace.rs:4 :13
33 |
44LL | let _ = "12345".replace('1', "1");
55 | ^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -8,43 +8,43 @@ LL | let _ = "12345".replace('1', "1");
88 = help: to override `-D warnings` add `#[allow(clippy::no_effect_replace)]`
99
1010error: replacing text with itself
11- --> tests/ui/no_effect_replace.rs:9 :13
11+ --> tests/ui/no_effect_replace.rs:7 :13
1212 |
1313LL | let _ = "12345".replace("12", "12");
1414 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
1515
1616error: replacing text with itself
17- --> tests/ui/no_effect_replace.rs:11 :13
17+ --> tests/ui/no_effect_replace.rs:9 :13
1818 |
1919LL | let _ = String::new().replace("12", "12");
2020 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2121
2222error: replacing text with itself
23- --> tests/ui/no_effect_replace.rs:14 :13
23+ --> tests/ui/no_effect_replace.rs:12 :13
2424 |
2525LL | let _ = "12345".replacen('1', "1", 1);
2626 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2727
2828error: replacing text with itself
29- --> tests/ui/no_effect_replace.rs:16 :13
29+ --> tests/ui/no_effect_replace.rs:14 :13
3030 |
3131LL | let _ = "12345".replacen("12", "12", 1);
3232 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3333
3434error: replacing text with itself
35- --> tests/ui/no_effect_replace.rs:18 :13
35+ --> tests/ui/no_effect_replace.rs:16 :13
3636 |
3737LL | let _ = String::new().replacen("12", "12", 1);
3838 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3939
4040error: replacing text with itself
41- --> tests/ui/no_effect_replace.rs:25 :13
41+ --> tests/ui/no_effect_replace.rs:23 :13
4242 |
4343LL | let _ = "hello".replace(&x.f(), &x.f());
4444 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4545
4646error: replacing text with itself
47- --> tests/ui/no_effect_replace.rs:29 :13
47+ --> tests/ui/no_effect_replace.rs:27 :13
4848 |
4949LL | let _ = "hello".replace(&y(), &y());
5050 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
0 commit comments