Skip to content

Commit 4cd308a

Browse files
committed
---
yaml --- r: 127974 b: refs/heads/auto c: d4c736b h: refs/heads/master v: v3
1 parent cf1a1a3 commit 4cd308a

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
@@ -13,7 +13,7 @@ refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
1313
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1414
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1515
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
16-
refs/heads/auto: 033f28d4364e0bd0ff7031b67e6bd0356fe00bfd
16+
refs/heads/auto: d4c736b1f0bd76fc083f1710f16f07e0e15fe6a0
1717
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1818
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1919
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336

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