Skip to content

Commit ef5a42c

Browse files
committed
---
yaml --- r: 128260 b: refs/heads/snap-stage3 c: d4c736b h: refs/heads/master v: v3
1 parent 92899c0 commit ef5a42c

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: cb9c1e0e702f4a1a5dfc909b15b74e8556013c06
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 033f28d4364e0bd0ff7031b67e6bd0356fe00bfd
4+
refs/heads/snap-stage3: d4c736b1f0bd76fc083f1710f16f07e0e15fe6a0
55
refs/heads/try: 73b8f60b60d8a2a7ca5a7d49d59771350b867951
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/src/libcore/slice.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,10 +163,12 @@ pub trait ImmutableSlice<'a, T> {
163163
/// Returns all but the first element of a vector
164164
fn tail(&self) -> &'a [T];
165165
/// Returns all but the first `n' elements of a vector
166+
#[deprecated = "use slice_from"]
166167
fn tailn(&self, n: uint) -> &'a [T];
167168
/// Returns all but the last element of a vector
168169
fn init(&self) -> &'a [T];
169170
/// Returns all but the last `n' elements of a vector
171+
#[deprecated = "use slice_to but note the arguments are different"]
170172
fn initn(&self, n: uint) -> &'a [T];
171173
/// Returns the last element of a vector, or `None` if it is empty.
172174
fn last(&self) -> Option<&'a T>;
@@ -339,6 +341,7 @@ impl<'a,T> ImmutableSlice<'a, T> for &'a [T] {
339341
fn tail(&self) -> &'a [T] { self.slice(1, self.len()) }
340342

341343
#[inline]
344+
#[deprecated = "use slice_from"]
342345
fn tailn(&self, n: uint) -> &'a [T] { self.slice(n, self.len()) }
343346

344347
#[inline]
@@ -347,6 +350,7 @@ impl<'a,T> ImmutableSlice<'a, T> for &'a [T] {
347350
}
348351

349352
#[inline]
353+
#[deprecated = "use slice_to but note the arguments are different"]
350354
fn initn(&self, n: uint) -> &'a [T] {
351355
self.slice(0, self.len() - n)
352356
}

0 commit comments

Comments
 (0)