rust/src/librustc/mir
Eduard-Mihai Burtescu fb92277291 Rollup merge of #37692 - nbp:debug-lvalue-subslice, r=eddyb
Balance the debug output of Lvalue Subslice

The current debug output for Lvalue Subslice is not balanced and does not respect the comment[1], which indicates that we use `slice[from:-to] in Python terms.`.  In python terms slices which have a start but no end are written as `a[start:]`, so following the comment, I fixed the output accordingly.

Grep-ing over the sources, I did not found any test cases checking this subslice debug output.
Note, I have not yet tested this change yet, as I am still waiting for the end of LLVM compilation.

[1] https://manishearth.github.io/rust-internals-docs/rustc/mir/enum.ProjectionElem.html
2016-11-12 10:38:42 +02:00
..
cache.rs rustc: move mir::repr::* to mir. 2016-10-28 10:37:24 +03:00
mod.rs Balance the debug output of Lvalue Subslice 2016-11-10 18:19:05 +00:00
tcx.rs rustc: clean up lookup_item_type and remove TypeScheme. 2016-11-10 16:49:53 +02:00
transform.rs rustc: move the MIR map into TyCtxt. 2016-10-28 13:55:49 +03:00
traversal.rs rustc: move mir::repr::* to mir. 2016-10-28 10:37:24 +03:00
visit.rs A way to remove otherwise unused locals from MIR 2016-11-03 06:17:01 +02:00