Skip to content

Commit 4ce4900

Browse files
committed
Balance the debug output of Lvalue Subslice
1 parent 187d989 commit 4ce4900

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc/mir/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -923,7 +923,7 @@ impl<'tcx> Debug for Lvalue<'tcx> {
923923
ProjectionElem::ConstantIndex { offset, min_length, from_end: true } =>
924924
write!(fmt, "{:?}[-{:?} of {:?}]", data.base, offset, min_length),
925925
ProjectionElem::Subslice { from, to } if to == 0 =>
926-
write!(fmt, "{:?}[{:?}:", data.base, from),
926+
write!(fmt, "{:?}[{:?}:]", data.base, from),
927927
ProjectionElem::Subslice { from, to } if from == 0 =>
928928
write!(fmt, "{:?}[:-{:?}]", data.base, to),
929929
ProjectionElem::Subslice { from, to } =>

0 commit comments

Comments
 (0)