Skip to content

Commit e12ae9c

Browse files
committed
---
yaml --- r: 154326 b: refs/heads/try2 c: d4c736b h: refs/heads/master v: v3
1 parent 5f2b48c commit e12ae9c

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
@@ -5,7 +5,7 @@ refs/heads/snap-stage3: 78a7676898d9f80ab540c6df5d4c9ce35bb50463
55
refs/heads/try: 519addf6277dbafccbb4159db4b710c37eaa2ec5
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8-
refs/heads/try2: 033f28d4364e0bd0ff7031b67e6bd0356fe00bfd
8+
refs/heads/try2: d4c736b1f0bd76fc083f1710f16f07e0e15fe6a0
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try2/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)