Skip to content

Commit 70d9cfd

Browse files
committed
---
yaml --- r: 124974 b: refs/heads/auto c: 79a9805 h: refs/heads/master v: v3
1 parent b73cc3b commit 70d9cfd

File tree

4 files changed

+7
-1
lines changed

4 files changed

+7
-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: d36a8f3f9c70c63ed9042d83cdc47392d12b3886
16+
refs/heads/auto: 79a980558b826b8ee722cf00409c65e8b2f24583
1717
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1818
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1919
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336

branches/auto/src/libcollections/dlist.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,13 +253,15 @@ impl<T> Deque<T> for DList<T> {
253253
/// Add an element last in the list
254254
///
255255
/// O(1)
256+
#[deprecated = "use the `push` method"]
256257
fn push_back(&mut self, elt: T) {
257258
self.push_back_node(box Node::new(elt))
258259
}
259260

260261
/// Remove the last element and return it, or None if the list is empty
261262
///
262263
/// O(1)
264+
#[deprecated = "use the `pop` method"]
263265
fn pop_back(&mut self) -> Option<T> {
264266
self.pop_back_node().map(|box Node{value, ..}| value)
265267
}

branches/auto/src/libcollections/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -492,6 +492,7 @@ pub trait Deque<T> : MutableSeq<T> {
492492
/// d.push_back(2i);
493493
/// assert_eq!(d.front(), Some(&1i));
494494
/// ```
495+
#[deprecated = "use the `push` method"]
495496
fn push_back(&mut self, elt: T);
496497

497498
/// Remove the last element and return it, or `None` if the sequence is empty.
@@ -509,6 +510,7 @@ pub trait Deque<T> : MutableSeq<T> {
509510
/// assert_eq!(d.pop_back(), Some(1i));
510511
/// assert_eq!(d.pop_back(), None);
511512
/// ```
513+
#[deprecated = "use the `pop` method"]
512514
fn pop_back(&mut self) -> Option<T>;
513515

514516
/// Remove the first element and return it, or `None` if the sequence is empty.

branches/auto/src/libcollections/ringbuf.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ impl<T> Deque<T> for RingBuf<T> {
8181
}
8282

8383
/// Remove and return the last element in the RingBuf, or None if it is empty
84+
#[deprecated = "use the `pop` method"]
8485
fn pop_back(&mut self) -> Option<T> {
8586
if self.nelts > 0 {
8687
self.nelts -= 1;
@@ -104,6 +105,7 @@ impl<T> Deque<T> for RingBuf<T> {
104105
}
105106

106107
/// Append an element to the RingBuf
108+
#[deprecated = "use the `push` method"]
107109
fn push_back(&mut self, t: T) {
108110
if self.nelts == self.elts.len() {
109111
grow(self.nelts, &mut self.lo, &mut self.elts);

0 commit comments

Comments
 (0)