File tree 2 files changed +13
-7
lines changed
src/test/ui/consts/miri_unleashed
2 files changed +13
-7
lines changed Original file line number Diff line number Diff line change @@ -20,9 +20,9 @@ const OVERFLOW: usize = {
20
20
C ( WithWraparoundInvalidValues ) ,
21
21
}
22
22
23
- let x = Foo :: B ; //~ WARNING skipping const checks
24
- match x {
25
- Foo :: B => 0 , //~ WARNING skipping const checks
23
+ let x = Foo :: B ;
24
+ match x { //~ WARNING skipping const checks
25
+ Foo :: B => 0 ,
26
26
_ => panic ! ( ) ,
27
27
}
28
28
} ;
@@ -87,18 +87,20 @@ const MORE_OVERFLOW: usize = {
87
87
88
88
if let E1 :: V2 { .. } = ( E1 :: V1 { f : true } ) {
89
89
//~^ WARNING skipping const checks
90
- //~| WARNING skipping const checks
91
90
unreachable ! ( )
92
91
}
93
92
if let E1 :: V1 { .. } = ( E1 :: V1 { f : true } ) {
93
+ //~^ WARNING skipping const checks
94
94
} else {
95
95
unreachable ! ( )
96
96
}
97
97
98
98
if let E2 :: V1 { .. } = E2 :: V3 :: < Infallible > {
99
+ //~^ WARNING skipping const checks
99
100
unreachable ! ( )
100
101
}
101
102
if let E2 :: V3 { .. } = E2 :: V3 :: < Infallible > {
103
+ //~^ WARNING skipping const checks
102
104
} else {
103
105
unreachable ! ( )
104
106
}
Original file line number Diff line number Diff line change @@ -11,31 +11,35 @@ warning: skipping const checks
11
11
--> $DIR/enum_discriminants.rs:88:5
12
12
|
13
13
LL | / if let E1::V2 { .. } = (E1::V1 { f: true }) {
14
+ LL | |
14
15
LL | | unreachable!()
15
16
LL | | }
16
17
| |_____^
17
18
18
19
warning: skipping const checks
19
- --> $DIR/enum_discriminants.rs:91 :5
20
+ --> $DIR/enum_discriminants.rs:92 :5
20
21
|
21
22
LL | / if let E1::V1 { .. } = (E1::V1 { f: true }) {
23
+ LL | |
22
24
LL | | } else {
23
25
LL | | unreachable!()
24
26
LL | | }
25
27
| |_____^
26
28
27
29
warning: skipping const checks
28
- --> $DIR/enum_discriminants.rs:96 :5
30
+ --> $DIR/enum_discriminants.rs:98 :5
29
31
|
30
32
LL | / if let E2::V1 { .. } = E2::V3::<Infallible> {
33
+ LL | |
31
34
LL | | unreachable!()
32
35
LL | | }
33
36
| |_____^
34
37
35
38
warning: skipping const checks
36
- --> $DIR/enum_discriminants.rs:99 :5
39
+ --> $DIR/enum_discriminants.rs:102 :5
37
40
|
38
41
LL | / if let E2::V3 { .. } = E2::V3::<Infallible> {
42
+ LL | |
39
43
LL | | } else {
40
44
LL | | unreachable!()
41
45
LL | | }
You can’t perform that action at this time.
0 commit comments