about summary refs log tree commit diff
path: root/compiler/rustc_session/src
diff options
context:
space:
mode:
authorIntegral <integral@member.fsf.org>2024-12-18 00:28:34 +0800
committerIntegral <integral@member.fsf.org>2024-12-18 00:28:34 +0800
commit7eb0d8442444897395d5ac167860f710a2842205 (patch)
tree6866058996d0f57706f82d6c2651e1f42d07fc2e /compiler/rustc_session/src
parent978c659b72ed7520332a74321dc8accf48b06d94 (diff)
downloadrust-7eb0d8442444897395d5ac167860f710a2842205.tar.gz
rust-7eb0d8442444897395d5ac167860f710a2842205.zip
refactor: replace &PathBuf with &Path to enhance generality
Diffstat (limited to 'compiler/rustc_session/src')
-rw-r--r--compiler/rustc_session/src/config.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_session/src/config.rs b/compiler/rustc_session/src/config.rs
index 936c2ca87d6..4784a4d1953 100644
--- a/compiler/rustc_session/src/config.rs
+++ b/compiler/rustc_session/src/config.rs
@@ -1076,7 +1076,7 @@ impl OutputFilenames {
         self.with_directory_and_extension(&self.out_directory, extension)
     }
 
-    pub fn with_directory_and_extension(&self, directory: &PathBuf, extension: &str) -> PathBuf {
+    pub fn with_directory_and_extension(&self, directory: &Path, extension: &str) -> PathBuf {
         let mut path = directory.join(&self.filestem);
         path.set_extension(extension);
         path