about summary refs log tree commit diff
path: root/src/libcollections
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2014-12-17 08:34:09 -0800
committerAlex Crichton <alex@alexcrichton.com>2014-12-17 11:50:25 -0800
commitdbd68c70cda23990617a6e255fc0fcce4829cddc (patch)
treea1e486057271cbaa6bfa9e88c26d7e188a3a2319 /src/libcollections
parentbdb1146181e4c320255bec4a93af3d645d522d59 (diff)
parentc3778fae6f57d30381476ea0110cb445e52b407a (diff)
downloadrust-dbd68c70cda23990617a6e255fc0fcce4829cddc.tar.gz
rust-dbd68c70cda23990617a6e255fc0fcce4829cddc.zip
rollup merge of #19832: japaric/no-nocopy
r? @aturon / @alexcrichton
Diffstat (limited to 'src/libcollections')
-rw-r--r--src/libcollections/btree/node.rs4
-rw-r--r--src/libcollections/ring_buf.rs2
2 files changed, 0 insertions, 6 deletions
diff --git a/src/libcollections/btree/node.rs b/src/libcollections/btree/node.rs
index 3718dd516b2..9698b06c7fa 100644
--- a/src/libcollections/btree/node.rs
+++ b/src/libcollections/btree/node.rs
@@ -19,7 +19,6 @@ pub use self::TraversalItem::*;
 use core::prelude::*;
 
 use core::{slice, mem, ptr, cmp, num, raw};
-use core::kinds::marker;
 use core::iter::Zip;
 use core::borrow::BorrowFrom;
 use alloc::heap;
@@ -176,7 +175,6 @@ fn calculate_offsets_generic<K, V>(capacity: uint, is_leaf: bool) -> (uint, uint
 struct RawItems<T> {
     head: *const T,
     tail: *const T,
-    marker: marker::NoCopy
 }
 
 impl<T> RawItems<T> {
@@ -189,13 +187,11 @@ impl<T> RawItems<T> {
             RawItems {
                 head: ptr,
                 tail: (ptr as uint + len) as *const T,
-                marker: marker::NoCopy
             }
         } else {
             RawItems {
                 head: ptr,
                 tail: ptr.offset(len as int),
-                marker: marker::NoCopy
             }
         }
     }
diff --git a/src/libcollections/ring_buf.rs b/src/libcollections/ring_buf.rs
index 084b585d7b9..e8dc3aeb52c 100644
--- a/src/libcollections/ring_buf.rs
+++ b/src/libcollections/ring_buf.rs
@@ -402,7 +402,6 @@ impl<T> RingBuf<T> {
             cap: self.cap,
             ptr: self.ptr,
             marker: marker::ContravariantLifetime::<'a>,
-            marker2: marker::NoCopy
         }
     }
 
@@ -952,7 +951,6 @@ pub struct MutItems<'a, T:'a> {
     head: uint,
     cap: uint,
     marker: marker::ContravariantLifetime<'a>,
-    marker2: marker::NoCopy
 }
 
 impl<'a, T> Iterator<&'a mut T> for MutItems<'a, T> {