Skip to content

Commit

Permalink
Rollup merge of #70080 - anyska:mir-double-space, r=oli-obk
Browse files Browse the repository at this point in the history
rustc_mir: remove extra space when pretty-printing MIR.
  • Loading branch information
Centril authored Mar 23, 2020
2 parents e37e81c + 7d40019 commit 4d5ecca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/librustc_mir/util/pretty.rs
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,7 @@ fn write_mir_sig(

ty::print::with_forced_impl_filename_line(|| {
// see notes on #41697 elsewhere
write!(w, " {}", tcx.def_path_str(src.def_id()))
write!(w, "{}", tcx.def_path_str(src.def_id()))
})?;

if src.promoted.is_none() && is_function {
Expand Down
2 changes: 1 addition & 1 deletion src/test/mir-opt/retag.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ fn main() {
// }
// END rustc.main-{{closure}}.SimplifyCfg-elaborate-drops.after.mir
// START rustc.ptr-drop_in_place.Test.SimplifyCfg-make_shim.after.mir
// fn std::intrinsics::drop_in_place(_1: *mut Test) -> () {
// fn std::intrinsics::drop_in_place(_1: *mut Test) -> () {
// ...
// bb0: {
// Retag([raw] _1);
Expand Down

0 comments on commit 4d5ecca

Please sign in to comment.