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 657ef8e commit 2e63bc5Copy full SHA for 2e63bc5
src/comp/util/filesearch.rs
@@ -48,8 +48,6 @@ fn mk_filesearch(maybe_sysroot: option<fs::path>,
48
result::ok(p) { [p] }
49
result::err(p) { [] }
50
}
51
- + [fs::connect(fs::connect(self.sysroot, ".cargo"),
52
- libdir())]
53
54
fn get_target_lib_path() -> fs::path {
55
make_target_lib_path(self.sysroot, self.target_triple)
@@ -113,7 +111,9 @@ fn get_sysroot(maybe_sysroot: option<fs::path>) -> fs::path {
113
111
114
112
115
fn get_cargo_sysroot() -> result::t<fs::path, str> {
116
- result::ok(fs::connect(get_default_sysroot(), ".cargo"))
+ let path = [get_default_sysroot(), libdir(), "cargo"];
+ check vec::is_not_empty(path);
+ result::ok(fs::connect_many(path))
117
118
119
fn get_cargo_root() -> result::t<fs::path, str> {
0 commit comments