From 6708d56fd2d5f937bc4b137757f18cd7c8dbd06b Mon Sep 17 00:00:00 2001 From: Jacob Kiesel Date: Sat, 28 Sep 2024 23:13:18 -0600 Subject: [PATCH] Fix bug in depinfo output --- compiler/rustc_interface/src/passes.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/compiler/rustc_interface/src/passes.rs b/compiler/rustc_interface/src/passes.rs index cd5624e38bd..5a8ea410a63 100644 --- a/compiler/rustc_interface/src/passes.rs +++ b/compiler/rustc_interface/src/passes.rs @@ -538,7 +538,7 @@ fn hash_iter_files>( for path in out_filenames { write!( file, - "{}: {}\n", + "{}: {}", path.display(), files .iter() @@ -565,6 +565,7 @@ fn hash_iter_files>( })?; } writeln!(file)?; + writeln!(file)?; } // Emit a fake target for each input file to the compilation. This