Skip to content

Commit e0fd814

Browse files
committed
Fix tests
1 parent 73a19a0 commit e0fd814

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

tests/ui/crashes/ice-12491.fixed

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
fn main() {
44
if (true) {
55
// anything一些中文
6-
//~^^ needless_return
6+
//~^ needless_return
77
}
88
}

tests/ui/crashes/ice-12491.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ fn main() {
44
if (true) {
55
// anything一些中文
66
return;
7-
//~^^ needless_return
7+
//~^ needless_return
88
}
99
}

tests/ui/crashes/ice-12491.stderr

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
error: unneeded `return` statement
2-
--> tests/ui/crashes/ice-12491.rs:5:24
2+
--> tests/ui/crashes/ice-12491.rs:6:9
33
|
4-
LL | // anything一些中文
5-
| ____________________________^
6-
LL | | return;
7-
| |______________^
4+
LL | return;
5+
| ^^^^^^
86
|
97
= note: `-D clippy::needless-return` implied by `-D warnings`
108
= help: to override `-D warnings` add `#[allow(clippy::needless_return)]`

0 commit comments

Comments
 (0)