This commit is contained in:
Ralf Jung 2018-10-29 09:09:03 +01:00
parent 09a3f7265e
commit 4ccdcdcace
2 changed files with 2 additions and 2 deletions

View File

@ -1 +1 @@
nightly-2018-10-22
nightly-2018-10-29

View File

@ -181,7 +181,7 @@ pub fn eval_main<'a, 'tcx: 'a>(
let e = e.to_string();
let msg = format!("constant evaluation error: {}", e);
let mut err = struct_error(ecx.tcx.tcx.at(span), msg.as_str());
let (frames, span) = ecx.generate_stacktrace(None);
let frames = ecx.generate_stacktrace(None);
err.span_label(span, e);
for FrameInfo { span, location, .. } in frames {
err.span_note(span, &format!("inside call to `{}`", location));