File tree Expand file tree Collapse file tree 2 files changed +5
-53
lines changed
src/test/ui/consts/miri_unleashed Expand file tree Collapse file tree 2 files changed +5
-53
lines changed Original file line number Diff line number Diff line change 1
- // compile-flags: -Zunleash-the-miri-inside-of-you
1
+ // compile-flags: -Zunleash-the-miri-inside-of-you -Awarnings
2
2
// run-pass
3
3
4
+ // miri unleashed warnings are not useful and change frequently, so they are silenced above.
5
+ #![ feature( const_panic) ]
6
+
4
7
//! Make sure that we read and write enum discriminants correctly for corner cases caused
5
8
//! by layout optimizations.
6
9
@@ -21,7 +24,7 @@ const OVERFLOW: usize = {
21
24
}
22
25
23
26
let x = Foo :: B ;
24
- match x { //~ WARNING skipping const checks
27
+ match x {
25
28
Foo :: B => 0 ,
26
29
_ => panic ! ( ) ,
27
30
}
@@ -86,21 +89,17 @@ const MORE_OVERFLOW: usize = {
86
89
}
87
90
88
91
if let E1 :: V2 { .. } = ( E1 :: V1 { f : true } ) {
89
- //~^ WARNING skipping const checks
90
92
unreachable ! ( )
91
93
}
92
94
if let E1 :: V1 { .. } = ( E1 :: V1 { f : true } ) {
93
- //~^ WARNING skipping const checks
94
95
} else {
95
96
unreachable ! ( )
96
97
}
97
98
98
99
if let E2 :: V1 { .. } = E2 :: V3 :: < Infallible > {
99
- //~^ WARNING skipping const checks
100
100
unreachable ! ( )
101
101
}
102
102
if let E2 :: V3 { .. } = E2 :: V3 :: < Infallible > {
103
- //~^ WARNING skipping const checks
104
103
} else {
105
104
unreachable ! ( )
106
105
}
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments