Skip to content

Commit d3282f8

Browse files
authored
Merge pull request #258 from Alexendoo/fixed-revision-filename
Use the revision filename when compiling the rustfix output
2 parents 914f935 + 843ecd9 commit d3282f8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/runtest.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2408,10 +2408,13 @@ actual:\n\
24082408
// And finally, compile the fixed code and make sure it both
24092409
// succeeds and has no diagnostics.
24102410
let mut rustc = self.make_compile_args(
2411-
&self.testpaths.file.with_extension(UI_FIXED),
2411+
&expected_fixed_path,
24122412
TargetLocation::ThisFile(self.make_exe_name()),
24132413
AllowUnused::No,
24142414
);
2415+
// Set the crate name to avoid `file.revision.fixed` inferring the
2416+
// invalid name `file.revision`
2417+
rustc.arg("--crate-name=fixed");
24152418
rustc.arg("-L").arg(&self.aux_output_dir_name());
24162419
let res = self.compose_and_run_compiler(rustc, None);
24172420
if !res.status.success() {

0 commit comments

Comments
 (0)