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 bde794d commit 0132adcCopy full SHA for 0132adc
compiler/rustc_session/src/config.rs
@@ -611,7 +611,14 @@ impl OutputFilenames {
611
.get(&flavor)
612
.and_then(|p| p.to_owned())
613
.or_else(|| self.single_output_file.clone())
614
- .unwrap_or_else(|| self.temp_path(flavor, None))
+ .unwrap_or_else(|| self.output_path(flavor))
615
+ }
616
+
617
+ /// Gets the output path where a compilation artifact of the given type
618
+ /// should be placed on disk.
619
+ pub fn output_path(&self, flavor: OutputType) -> PathBuf {
620
+ let extension = flavor.extension();
621
+ self.with_directory_and_extension(&self.out_directory, &extension)
622
}
623
624
/// Gets the path where a compilation artifact of the given type for the
0 commit comments