We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9478190 commit ca901a1Copy full SHA for ca901a1
src/tools/compiletest/src/runtest.rs
@@ -521,11 +521,16 @@ impl<'test> TestCx<'test> {
521
.args(&self.props.compile_flags)
522
.envs(self.props.exec_env.clone());
523
524
+ let src_to_read = match read_from {
525
+ ReadFrom::Stdin => Some(src),
526
+ ReadFrom::Path => None
527
+ };
528
+
529
self.compose_and_run(
530
rustc,
531
self.config.compile_lib_path.to_str().unwrap(),
532
Some(aux_dir.to_str().unwrap()),
- Some(src),
533
+ src_to_read,
534
)
535
}
536
0 commit comments