From 523c1877d98c5e0796f745c84328b2fa2864639a Mon Sep 17 00:00:00 2001 From: Oliver Schneider Date: Fri, 10 Feb 2017 21:59:29 +0100 Subject: [PATCH] print local fields as `_2.1` instead of `_2 (field 1)` --- src/eval_context.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/eval_context.rs b/src/eval_context.rs index 114927b9574..280117a4247 100644 --- a/src/eval_context.rs +++ b/src/eval_context.rs @@ -1367,13 +1367,13 @@ pub(super) fn dump_local(&self, lvalue: Lvalue<'tcx>) { if let Lvalue::Local { frame, local, field } = lvalue { let mut allocs = Vec::new(); let mut msg = format!("{:?}", local); + if let Some(field) = field { + write!(msg, ".{}", field).unwrap(); + } let last_frame = self.stack.len() - 1; if frame != last_frame { write!(msg, " ({} frames up)", last_frame - frame).unwrap(); } - if let Some(field) = field { - write!(msg, " (field {:?})", field).unwrap(); - } write!(msg, ":").unwrap(); match self.stack[frame].get_local(local, field.map(|(i, _)| i)) {