diff options
| author | Ana-Maria Mihalache <mihalacheana.maria@yahoo.com> | 2020-03-17 16:33:26 +0000 |
|---|---|---|
| committer | Ana-Maria Mihalache <mihalacheana.maria@yahoo.com> | 2020-03-17 16:33:26 +0000 |
| commit | 7d400199c2b1778ba7fd4748a5cb16d926a85d67 (patch) | |
| tree | 18930f465749308a3c8e8d37da28fa5d1024c397 | |
| parent | 54b7d21f59a363e53eb1c31d76b40af2ff99321c (diff) | |
| download | rust-7d400199c2b1778ba7fd4748a5cb16d926a85d67.tar.gz rust-7d400199c2b1778ba7fd4748a5cb16d926a85d67.zip | |
rustc_mir: remove extra space when pretty-printing MIR.
| -rw-r--r-- | src/librustc_mir/util/pretty.rs | 2 | ||||
| -rw-r--r-- | src/test/mir-opt/retag.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc_mir/util/pretty.rs b/src/librustc_mir/util/pretty.rs index e7ca8b0be78..1dceca7a177 100644 --- a/src/librustc_mir/util/pretty.rs +++ b/src/librustc_mir/util/pretty.rs @@ -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 { diff --git a/src/test/mir-opt/retag.rs b/src/test/mir-opt/retag.rs index 1c88a9e4d5a..233d6d06bd1 100644 --- a/src/test/mir-opt/retag.rs +++ b/src/test/mir-opt/retag.rs @@ -114,7 +114,7 @@ fn main() { // } // END rustc.main-{{closure}}.EraseRegions.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); |
