We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 914f935 + 843ecd9 commit d3282f8Copy full SHA for d3282f8
src/runtest.rs
@@ -2408,10 +2408,13 @@ actual:\n\
2408
// And finally, compile the fixed code and make sure it both
2409
// succeeds and has no diagnostics.
2410
let mut rustc = self.make_compile_args(
2411
- &self.testpaths.file.with_extension(UI_FIXED),
+ &expected_fixed_path,
2412
TargetLocation::ThisFile(self.make_exe_name()),
2413
AllowUnused::No,
2414
);
2415
+ // Set the crate name to avoid `file.revision.fixed` inferring the
2416
+ // invalid name `file.revision`
2417
+ rustc.arg("--crate-name=fixed");
2418
rustc.arg("-L").arg(&self.aux_output_dir_name());
2419
let res = self.compose_and_run_compiler(rustc, None);
2420
if !res.status.success() {
0 commit comments