Skip to content

Commit 277b59c

Browse files
committed
Auto merge of #1715 - RalfJung:rustup, r=RalfJung
rustup
2 parents b84b3a0 + 2672baa commit 277b59c

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

rust-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
a143517d44cac50b20cbd3a0b579addab40dd399
1+
d1462d8558cf4551608457f63d9b999185ebf3bf

src/diagnostics.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ pub fn report_error<'tcx, 'mir>(
5454
) -> Option<i64> {
5555
use InterpError::*;
5656

57-
let (title, helps) = match &e.kind {
57+
let (title, helps) = match &e.kind() {
5858
MachineStop(info) => {
5959
let info = info.downcast_ref::<TerminationInfo>().expect("invalid MachineStop payload");
6060
use TerminationInfo::*;
@@ -81,7 +81,7 @@ pub fn report_error<'tcx, 'mir>(
8181
(title, helps)
8282
}
8383
_ => {
84-
let title = match e.kind {
84+
let title = match e.kind() {
8585
Unsupported(_) =>
8686
"unsupported operation",
8787
UndefinedBehavior(_) =>
@@ -93,11 +93,11 @@ pub fn report_error<'tcx, 'mir>(
9393
_ =>
9494
bug!("This error should be impossible in Miri: {}", e),
9595
};
96-
let helps = match e.kind {
96+
let helps = match e.kind() {
9797
Unsupported(UnsupportedOpInfo::NoMirFor(..)) =>
9898
vec![format!("make sure to use a Miri sysroot, which you can prepare with `cargo miri setup`")],
9999
Unsupported(UnsupportedOpInfo::ReadBytesAsPointer | UnsupportedOpInfo::ThreadLocalStatic(_) | UnsupportedOpInfo::ReadExternStatic(_)) =>
100-
panic!("Error should never be raised by Miri: {:?}", e.kind),
100+
panic!("Error should never be raised by Miri: {:?}", e.kind()),
101101
Unsupported(_) =>
102102
vec![format!("this is likely not a bug in the program; it indicates that the program performed an operation that the interpreter does not support")],
103103
UndefinedBehavior(UndefinedBehaviorInfo::AlignmentCheckFailed { .. })
@@ -133,7 +133,7 @@ pub fn report_error<'tcx, 'mir>(
133133
}
134134

135135
// Extra output to help debug specific issues.
136-
match e.kind {
136+
match e.kind() {
137137
UndefinedBehavior(UndefinedBehaviorInfo::InvalidUninitBytes(Some(access))) => {
138138
eprintln!(
139139
"Uninitialized read occurred at offsets 0x{:x}..0x{:x} into this allocation:",

src/eval.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ pub fn eval_main<'tcx>(tcx: TyCtxt<'tcx>, main_id: DefId, config: MiriConfig) ->
208208
Ok(v) => v,
209209
Err(err) => {
210210
err.print_backtrace();
211-
panic!("Miri initialization error: {}", err.kind)
211+
panic!("Miri initialization error: {}", err.kind())
212212
}
213213
};
214214

0 commit comments

Comments
 (0)