Skip to content

Commit 54293c1

Browse files
committed
Rename get_self_contained_lib_path
1 parent 2e3f517 commit 54293c1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/librustc_codegen_ssa/back/link.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1090,7 +1090,7 @@ fn get_object_file_path(sess: &Session, name: &str, self_contained: bool) -> Pat
10901090
}
10911091
// Special directory with objects used only in self-contained linkage mode
10921092
if self_contained {
1093-
let file_path = fs.get_selfcontained_lib_path().join(name);
1093+
let file_path = fs.get_self_contained_lib_path().join(name);
10941094
if file_path.exists() {
10951095
return file_path;
10961096
}
@@ -1500,7 +1500,7 @@ fn add_library_search_dirs(cmd: &mut dyn Linker, sess: &Session, self_contained:
15001500

15011501
// Special directory with libraries used only in self-contained linkage mode
15021502
if self_contained {
1503-
let lib_path = sess.target_filesearch(PathKind::All).get_selfcontained_lib_path();
1503+
let lib_path = sess.target_filesearch(PathKind::All).get_self_contained_lib_path();
15041504
cmd.include_path(&fix_windows_verbatim_for_gcc(&lib_path));
15051505
}
15061506
}

src/librustc_session/filesearch.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ impl<'a> FileSearch<'a> {
4141
make_target_lib_path(self.sysroot, self.triple)
4242
}
4343

44-
pub fn get_selfcontained_lib_path(&self) -> PathBuf {
44+
pub fn get_self_contained_lib_path(&self) -> PathBuf {
4545
self.get_lib_path().join("self-contained")
4646
}
4747

0 commit comments

Comments
 (0)