diff options
| author | Eric Holk <eric.holk@gmail.com> | 2012-07-12 10:47:37 -0700 |
|---|---|---|
| committer | Eric Holk <eric.holk@gmail.com> | 2012-07-12 18:16:00 -0700 |
| commit | aba665da32708017c2fcbe7f922eb087a8dbe3b1 (patch) | |
| tree | 246042659a7c4c3d9a901a8ec84d0b96a9923569 /src/rustc/back | |
| parent | 1a276dba52b5e717d12ab410832bdc13c28e9a67 (diff) | |
| download | rust-aba665da32708017c2fcbe7f922eb087a8dbe3b1.tar.gz rust-aba665da32708017c2fcbe7f922eb087a8dbe3b1.zip | |
Fix the signature on vec::view.
Due to limitations in region inference, this has the effect of making vec::view pretty much entirely unusable.
Diffstat (limited to 'src/rustc/back')
| -rw-r--r-- | src/rustc/back/rpath.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rustc/back/rpath.rs b/src/rustc/back/rpath.rs index 2625a244beb..f29dc26ed39 100644 --- a/src/rustc/back/rpath.rs +++ b/src/rustc/back/rpath.rs @@ -144,7 +144,8 @@ fn get_relative_to(abs1: path::path, abs2: path::path) -> path::path { let mut path = ~[]; for uint::range(start_idx, len1 - 1u) |_i| { vec::push(path, ".."); }; - vec::push_all(path, vec::view(split2, start_idx, len2 - 1u)); + // FIXME (#2880): use view here. + vec::push_all(path, vec::slice(split2, start_idx, len2 - 1u)); if check vec::is_not_empty(path) { ret path::connect_many(path); |
