File tree Expand file tree Collapse file tree 3 files changed +5
-7
lines changed Expand file tree Collapse file tree 3 files changed +5
-7
lines changed Original file line number Diff line number Diff line change 3
3
fn main() {
4
4
if (true) {
5
5
// anything一些中文
6
- //~^^ needless_return
6
+ //~^ needless_return
7
7
}
8
8
}
Original file line number Diff line number Diff line change @@ -4,6 +4,6 @@ fn main() {
4
4
if ( true ) {
5
5
// anything一些中文
6
6
return ;
7
- //~^^ needless_return
7
+ //~^ needless_return
8
8
}
9
9
}
Original file line number Diff line number Diff line change 1
1
error: unneeded `return` statement
2
- --> tests/ui/crashes/ice-12491.rs:5:24
2
+ --> tests/ui/crashes/ice-12491.rs:6:9
3
3
|
4
- LL | // anything一些中文
5
- | ____________________________^
6
- LL | | return;
7
- | |______________^
4
+ LL | return;
5
+ | ^^^^^^
8
6
|
9
7
= note: `-D clippy::needless-return` implied by `-D warnings`
10
8
= help: to override `-D warnings` add `#[allow(clippy::needless_return)]`
You can’t perform that action at this time.
0 commit comments