Skip to content

Commit 7d40019

Browse files
committedMar 17, 2020
rustc_mir: remove extra space when pretty-printing MIR.
1 parent 54b7d21 commit 7d40019

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎src/librustc_mir/util/pretty.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,7 @@ fn write_mir_sig(
561561

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

567567
if src.promoted.is_none() && is_function {

‎src/test/mir-opt/retag.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ fn main() {
114114
// }
115115
// END rustc.main-{{closure}}.EraseRegions.after.mir
116116
// START rustc.ptr-drop_in_place.Test.SimplifyCfg-make_shim.after.mir
117-
// fn std::intrinsics::drop_in_place(_1: *mut Test) -> () {
117+
// fn std::intrinsics::drop_in_place(_1: *mut Test) -> () {
118118
// ...
119119
// bb0: {
120120
// Retag([raw] _1);

0 commit comments

Comments
 (0)
Please sign in to comment.