Skip to content

Commit 247fbd7

Browse files
author
The Miri Conjob Bot
committed
Merge from rustc
2 parents 33a06bb + a666810 commit 247fbd7

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

src/diagnostics.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ impl MachineStopType for TerminationInfo {
104104
self: Box<Self>,
105105
_: &mut dyn FnMut(
106106
std::borrow::Cow<'static, str>,
107-
rustc_errors::DiagnosticArgValue<'static>,
107+
rustc_errors::DiagnosticArgValue,
108108
),
109109
) {
110110
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
// Validation stops the test before the ICE we used to hit
2+
//@compile-flags: -Zmiri-disable-validation
3+
4+
#![feature(never_type)]
5+
#[derive(Copy, Clone)]
6+
pub enum E {
7+
A(!),
8+
}
9+
pub union U {
10+
u: (),
11+
e: E,
12+
}
13+
14+
fn main() {
15+
let E::A(ref _a) = unsafe { &(&U { u: () }).e };
16+
}

0 commit comments

Comments
 (0)