mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-30 22:12:15 +00:00
Rollup merge of #127512 - eggyal:newline-terminate-print-linkargs, r=compiler-errors
Terminate `--print link-args` output with newline Fixes #127507
This commit is contained in:
commit
8840d302e5
@ -750,7 +750,7 @@ fn link_natively(
|
||||
|
||||
for print in &sess.opts.prints {
|
||||
if print.kind == PrintKind::LinkArgs {
|
||||
let content = format!("{cmd:?}");
|
||||
let content = format!("{cmd:?}\n");
|
||||
print.out.overwrite(&content, sess);
|
||||
}
|
||||
}
|
||||
|
@ -17,4 +17,5 @@ fn main() {
|
||||
.run_unchecked();
|
||||
out.assert_stdout_contains("lfoo");
|
||||
out.assert_stdout_contains("lbar");
|
||||
assert!(out.stdout_utf8().ends_with('\n'));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user