11error: missing `return` statement
2- --> tests/ui/implicit_return.rs:11 :5
2+ --> tests/ui/implicit_return.rs:16 :5
33 |
44LL | true
55 | ^^^^ help: add `return` as shown: `return true`
@@ -8,85 +8,85 @@ LL | true
88 = help: to override `-D warnings` add `#[allow(clippy::implicit_return)]`
99
1010error: missing `return` statement
11- --> tests/ui/implicit_return.rs:15 :15
11+ --> tests/ui/implicit_return.rs:20 :15
1212 |
1313LL | if true { true } else { false }
1414 | ^^^^ help: add `return` as shown: `return true`
1515
1616error: missing `return` statement
17- --> tests/ui/implicit_return.rs:15 :29
17+ --> tests/ui/implicit_return.rs:20 :29
1818 |
1919LL | if true { true } else { false }
2020 | ^^^^^ help: add `return` as shown: `return false`
2121
2222error: missing `return` statement
23- --> tests/ui/implicit_return.rs:21 :17
23+ --> tests/ui/implicit_return.rs:26 :17
2424 |
2525LL | true => false,
2626 | ^^^^^ help: add `return` as shown: `return false`
2727
2828error: missing `return` statement
29- --> tests/ui/implicit_return.rs:22 :20
29+ --> tests/ui/implicit_return.rs:27 :20
3030 |
3131LL | false => { true },
3232 | ^^^^ help: add `return` as shown: `return true`
3333
3434error: missing `return` statement
35- --> tests/ui/implicit_return.rs:35 :9
35+ --> tests/ui/implicit_return.rs:40 :9
3636 |
3737LL | break true;
3838 | ^^^^^^^^^^ help: change `break` to `return` as shown: `return true`
3939
4040error: missing `return` statement
41- --> tests/ui/implicit_return.rs:42 :13
41+ --> tests/ui/implicit_return.rs:47 :13
4242 |
4343LL | break true;
4444 | ^^^^^^^^^^ help: change `break` to `return` as shown: `return true`
4545
4646error: missing `return` statement
47- --> tests/ui/implicit_return.rs:50 :13
47+ --> tests/ui/implicit_return.rs:55 :13
4848 |
4949LL | break true;
5050 | ^^^^^^^^^^ help: change `break` to `return` as shown: `return true`
5151
5252error: missing `return` statement
53- --> tests/ui/implicit_return.rs:68 :18
53+ --> tests/ui/implicit_return.rs:73 :18
5454 |
5555LL | let _ = || { true };
5656 | ^^^^ help: add `return` as shown: `return true`
5757
5858error: missing `return` statement
59- --> tests/ui/implicit_return.rs:69 :16
59+ --> tests/ui/implicit_return.rs:74 :16
6060 |
6161LL | let _ = || true;
6262 | ^^^^ help: add `return` as shown: `return true`
6363
6464error: missing `return` statement
65- --> tests/ui/implicit_return.rs:77 :5
65+ --> tests/ui/implicit_return.rs:82 :5
6666 |
6767LL | format!("test {}", "test")
6868 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add `return` as shown: `return format!("test {}", "test")`
6969
7070error: missing `return` statement
71- --> tests/ui/implicit_return.rs:86 :5
71+ --> tests/ui/implicit_return.rs:91 :5
7272 |
7373LL | m!(true, false)
7474 | ^^^^^^^^^^^^^^^ help: add `return` as shown: `return m!(true, false)`
7575
7676error: missing `return` statement
77- --> tests/ui/implicit_return.rs:92 :13
77+ --> tests/ui/implicit_return.rs:97 :13
7878 |
7979LL | break true;
8080 | ^^^^^^^^^^ help: change `break` to `return` as shown: `return true`
8181
8282error: missing `return` statement
83- --> tests/ui/implicit_return.rs:97 :17
83+ --> tests/ui/implicit_return.rs:102 :17
8484 |
8585LL | break 'outer false;
8686 | ^^^^^^^^^^^^^^^^^^ help: change `break` to `return` as shown: `return false`
8787
8888error: missing `return` statement
89- --> tests/ui/implicit_return.rs:112 :5
89+ --> tests/ui/implicit_return.rs:117 :5
9090 |
9191LL | / loop {
9292LL | | m!(true);
@@ -101,7 +101,7 @@ LL + }
101101 |
102102
103103error: missing `return` statement
104- --> tests/ui/implicit_return.rs:126 :5
104+ --> tests/ui/implicit_return.rs:131 :5
105105 |
106106LL | true
107107 | ^^^^ help: add `return` as shown: `return true`
0 commit comments