Skip to content

Commit 2ddd8b4

Browse files
committed
rustc_codegen_ssa: Remove trailing spaces in Display impl for CguReuse
Otherwise errors will look like this: error: CGU-reuse for `cgu_invalidated_via_import-bar` is `PreLto ` but should be `PostLto `
1 parent 5b8bc56 commit 2ddd8b4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/rustc_codegen_ssa/src/assert_module_sources.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -199,8 +199,8 @@ impl fmt::Display for CguReuse {
199199
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
200200
match *self {
201201
CguReuse::No => write!(f, "No"),
202-
CguReuse::PreLto => write!(f, "PreLto "),
203-
CguReuse::PostLto => write!(f, "PostLto "),
202+
CguReuse::PreLto => write!(f, "PreLto"),
203+
CguReuse::PostLto => write!(f, "PostLto"),
204204
}
205205
}
206206
}

0 commit comments

Comments
 (0)