Switch Driver back to parameters for construction (#4849)

This is for more complex construction, see #4846
This commit is contained in:
Jon Ross-Perkins
2025-01-27 23:48:44 +00:00
committed by GitHub
parent 8727445656
commit 0d0e202ce8
10 changed files with 36 additions and 45 deletions
+2 -5
View File
@@ -115,11 +115,8 @@ auto ToolchainFileTest::Run(
}
}
Driver driver({.fs = fs,
.installation = &installation_,
.input_stream = input_stream,
.output_stream = &output_stream,
.error_stream = &error_stream});
Driver driver(fs, &installation_, input_stream, &output_stream,
&error_stream);
auto driver_result = driver.RunCommand(test_args);
// If any diagnostics have been produced, add a trailing newline to make the
// last diagnostic match intermediate diagnostics (that have a newline