Skip to content

Commit 8a9153d

Browse files
author
The Miri Cronjob Bot
committed
Merge from rustc
2 parents 6ee75c4 + 6e64338 commit 8a9153d

12 files changed

+79
-66
lines changed

tests/ui/blocks_in_conditions.fixed

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
//@aux-build:proc_macro_attr.rs
22

33
#![warn(clippy::blocks_in_conditions)]
4-
#![allow(unused, clippy::needless_if, clippy::missing_transmute_annotations)]
4+
#![allow(
5+
unused,
6+
unnecessary_transmutes,
7+
clippy::let_and_return,
8+
clippy::needless_if,
9+
clippy::missing_transmute_annotations
10+
)]
511
#![warn(clippy::nonminimal_bool)]
612

713
macro_rules! blocky {

tests/ui/blocks_in_conditions.rs

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
//@aux-build:proc_macro_attr.rs
22

33
#![warn(clippy::blocks_in_conditions)]
4-
#![allow(unused, clippy::needless_if, clippy::missing_transmute_annotations)]
4+
#![allow(
5+
unused,
6+
unnecessary_transmutes,
7+
clippy::let_and_return,
8+
clippy::needless_if,
9+
clippy::missing_transmute_annotations
10+
)]
511
#![warn(clippy::nonminimal_bool)]
612

713
macro_rules! blocky {

tests/ui/blocks_in_conditions.stderr

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error: in an `if` condition, avoid complex blocks or closures with blocks; instead, move the block or closure higher and bind it with a `let`
2-
--> tests/ui/blocks_in_conditions.rs:25:5
2+
--> tests/ui/blocks_in_conditions.rs:31:5
33
|
44
LL | / if {
55
LL | |
@@ -20,13 +20,13 @@ LL ~ }; if res {
2020
|
2121

2222
error: omit braces around single expression condition
23-
--> tests/ui/blocks_in_conditions.rs:37:8
23+
--> tests/ui/blocks_in_conditions.rs:43:8
2424
|
2525
LL | if { true } { 6 } else { 10 }
2626
| ^^^^^^^^ help: try: `true`
2727

2828
error: this boolean expression can be simplified
29-
--> tests/ui/blocks_in_conditions.rs:43:8
29+
--> tests/ui/blocks_in_conditions.rs:49:8
3030
|
3131
LL | if true && x == 3 { 6 } else { 10 }
3232
| ^^^^^^^^^^^^^^ help: try: `x == 3`

tests/ui/crashes/ice-1782.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//@ check-pass
22

3-
#![allow(dead_code, unused_variables, invalid_null_arguments)]
3+
#![allow(dead_code, unused_variables, invalid_null_arguments, unnecessary_transmutes)]
44
#![allow(clippy::unnecessary_cast, clippy::missing_transmute_annotations)]
55

66
/// Should not trigger an ICE in `SpanlessEq` / `consts::constant`

tests/ui/transmute.rs

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
#![allow(
44
dead_code,
55
clippy::borrow_as_ptr,
6+
unnecessary_transmutes,
67
clippy::needless_lifetimes,
78
clippy::missing_transmute_annotations
89
)]

0 commit comments

Comments
 (0)