diff options
| author | bors <bors@rust-lang.org> | 2014-08-12 22:01:25 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-08-12 22:01:25 +0000 |
| commit | 51c7e20d539eaed6e765612a02fbf2865e08a1bc (patch) | |
| tree | 5b1dcf1dee9cdc745b0d01c0d26295f05a97d04d /src/libcollections/string.rs | |
| parent | 4bb4a43917bf702fb2c6a614786aa1abe6c1014c (diff) | |
| parent | d7484b86fc8936d670c168c9838e188e1bc8047a (diff) | |
auto merge of #16433 : aturon/rust/deprecated-in-crate, r=alexcrichton
Previously the stability lint considered cross-crate items only. That's appropriate for unstable and experimental levels, but not for deprecation. In addition to changing the lint, this PR takes care of the fallout: a number of deprecated items that were being used throughout libstd. Closes #16409 Due to deny(deprecated), this is a: [breaking-change]
Diffstat (limited to 'src/libcollections/string.rs')
| -rw-r--r-- | src/libcollections/string.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcollections/string.rs b/src/libcollections/string.rs index 9465fea6dcb..952f28da2af 100644 --- a/src/libcollections/string.rs +++ b/src/libcollections/string.rs @@ -669,7 +669,7 @@ impl String { /// } /// ``` pub unsafe fn shift_byte(&mut self) -> Option<u8> { - self.vec.shift() + self.vec.remove(0) } /// Removes the first character from the string buffer and returns it. |
