Skip to content

Commit

Permalink
Merge pull request #258 from Alexendoo/fixed-revision-filename
Browse files Browse the repository at this point in the history
Use the revision filename when compiling the rustfix output
  • Loading branch information
Munksgaard authored Jul 8, 2022
2 parents 914f935 + 843ecd9 commit d3282f8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/runtest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2408,10 +2408,13 @@ actual:\n\
// And finally, compile the fixed code and make sure it both
// succeeds and has no diagnostics.
let mut rustc = self.make_compile_args(
&self.testpaths.file.with_extension(UI_FIXED),
&expected_fixed_path,
TargetLocation::ThisFile(self.make_exe_name()),
AllowUnused::No,
);
// Set the crate name to avoid `file.revision.fixed` inferring the
// invalid name `file.revision`
rustc.arg("--crate-name=fixed");
rustc.arg("-L").arg(&self.aux_output_dir_name());
let res = self.compose_and_run_compiler(rustc, None);
if !res.status.success() {
Expand Down

0 comments on commit d3282f8

Please sign in to comment.