Skip to content

Commit 86a06b6

Browse files
committed
---
yaml --- r: 14381 b: refs/heads/try c: 2e63bc5 h: refs/heads/master i: 14379: 663f44f v: v3
1 parent 516a684 commit 86a06b6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
refs/heads/master: 61b1875c16de39c166b0f4d54bba19f9c6777d1a
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
5-
refs/heads/try: 657ef8ef6057b09be9b89b1f542ce64d2ec534d6
5+
refs/heads/try: 2e63bc5d8293d38cb3be7cb07d6267c9db385062
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105

branches/try/src/comp/util/filesearch.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,6 @@ fn mk_filesearch(maybe_sysroot: option<fs::path>,
4848
result::ok(p) { [p] }
4949
result::err(p) { [] }
5050
}
51-
+ [fs::connect(fs::connect(self.sysroot, ".cargo"),
52-
libdir())]
5351
}
5452
fn get_target_lib_path() -> fs::path {
5553
make_target_lib_path(self.sysroot, self.target_triple)
@@ -113,7 +111,9 @@ fn get_sysroot(maybe_sysroot: option<fs::path>) -> fs::path {
113111
}
114112

115113
fn get_cargo_sysroot() -> result::t<fs::path, str> {
116-
result::ok(fs::connect(get_default_sysroot(), ".cargo"))
114+
let path = [get_default_sysroot(), libdir(), "cargo"];
115+
check vec::is_not_empty(path);
116+
result::ok(fs::connect_many(path))
117117
}
118118

119119
fn get_cargo_root() -> result::t<fs::path, str> {

0 commit comments

Comments
 (0)