We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4013acd + f96f68f commit 8840d30Copy full SHA for 8840d30
compiler/rustc_codegen_ssa/src/back/link.rs
@@ -750,7 +750,7 @@ fn link_natively(
750
751
for print in &sess.opts.prints {
752
if print.kind == PrintKind::LinkArgs {
753
- let content = format!("{cmd:?}");
+ let content = format!("{cmd:?}\n");
754
print.out.overwrite(&content, sess);
755
}
756
tests/run-make/link-arg/rmake.rs
@@ -17,4 +17,5 @@ fn main() {
17
.run_unchecked();
18
out.assert_stdout_contains("lfoo");
19
out.assert_stdout_contains("lbar");
20
+ assert!(out.stdout_utf8().ends_with('\n'));
21
0 commit comments