about summary refs log tree commit diff
path: root/src/libsync/mpmc_bounded_queue.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2014-09-16 23:26:11 +0000
committerbors <bors@rust-lang.org>2014-09-16 23:26:11 +0000
commit0e784e16840e8a0c623cc6166de26da9334db3d6 (patch)
treecb9ee37525225e3cbe4cda7d7954f2f72d24acb8 /src/libsync/mpmc_bounded_queue.rs
parentceb9bbfbf5933f9df238fecdd14e75304439c4f4 (diff)
parentfc525eeb4ec3443d29bce677f589b19f31c189bb (diff)
downloadrust-0e784e16840e8a0c623cc6166de26da9334db3d6.tar.gz
rust-0e784e16840e8a0c623cc6166de26da9334db3d6.zip
auto merge of #17268 : aturon/rust/mut-conventions, r=alexcrichton
As per [RFC 52](https://github.com/rust-lang/rfcs/blob/master/active/0052-ownership-variants.md), use `_mut` suffixes to mark mutable variants, and `into_iter` for moving iterators. Additional details and motivation in the RFC.

Note that the iterator *type* names are not changed by this RFC; those are awaiting a separate RFC for standardization.

Closes #13660
Closes #16810

[breaking-change]
Diffstat (limited to 'src/libsync/mpmc_bounded_queue.rs')
-rw-r--r--src/libsync/mpmc_bounded_queue.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsync/mpmc_bounded_queue.rs b/src/libsync/mpmc_bounded_queue.rs
index 949ef3bc34c..fa29bb6088a 100644
--- a/src/libsync/mpmc_bounded_queue.rs
+++ b/src/libsync/mpmc_bounded_queue.rs
@@ -210,7 +210,7 @@ mod tests {
             });
         }
 
-        for rx in completion_rxs.mut_iter() {
+        for rx in completion_rxs.iter_mut() {
             assert_eq!(nmsgs, rx.recv());
         }
         for _ in range(0, nthreads) {