Skip to content

Commit c623375

Browse files
committed
Fixed extra cases found in better checking.
1 parent 8e4c9e4 commit c623375

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/liballoc/vec_deque.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2558,7 +2558,7 @@ impl<'a, T> Place<T> for PlaceBack<'a, T> {
25582558
impl<'a, T> InPlace<T> for PlaceBack<'a, T> {
25592559
type Owner = &'a mut T;
25602560

2561-
unsafe fn finalize(mut self) -> &'a mut T {
2561+
unsafe fn finalize(self) -> &'a mut T {
25622562
let head = self.vec_deque.head;
25632563
self.vec_deque.head = self.vec_deque.wrap_add(head, 1);
25642564
&mut *(self.vec_deque.ptr().offset(head as isize))
@@ -2605,7 +2605,7 @@ impl<'a, T> Place<T> for PlaceFront<'a, T> {
26052605
impl<'a, T> InPlace<T> for PlaceFront<'a, T> {
26062606
type Owner = &'a mut T;
26072607

2608-
unsafe fn finalize(mut self) -> &'a mut T {
2608+
unsafe fn finalize(self) -> &'a mut T {
26092609
self.vec_deque.tail = self.vec_deque.wrap_sub(self.vec_deque.tail, 1);
26102610
&mut *(self.vec_deque.ptr().offset(self.vec_deque.tail as isize))
26112611
}

src/libstd/collections/hash/table.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,7 @@ impl<'t, K, V> FullBucket<K, V, &'t mut RawTable<K, V>> {
563563
///
564564
/// This works similarly to `put`, building an `EmptyBucket` out of the
565565
/// taken bucket.
566-
pub fn take(mut self) -> (EmptyBucket<K, V, &'t mut RawTable<K, V>>, K, V) {
566+
pub fn take(self) -> (EmptyBucket<K, V, &'t mut RawTable<K, V>>, K, V) {
567567
self.table.size -= 1;
568568

569569
unsafe {

src/libsyntax_ext/format.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,7 @@ impl<'a, 'b> Context<'a, 'b> {
529529

530530
/// Actually builds the expression which the format_args! block will be
531531
/// expanded to
532-
fn into_expr(mut self) -> P<ast::Expr> {
532+
fn into_expr(self) -> P<ast::Expr> {
533533
let mut locals = Vec::new();
534534
let mut counts = Vec::new();
535535
let mut pats = Vec::new();

0 commit comments

Comments
 (0)