about summary refs log tree commit diff
path: root/src/libstd/slice.rs
diff options
context:
space:
mode:
authorFlavio Percoco <flaper87@gmail.com>2014-03-27 00:01:11 +0100
committerFlavio Percoco <flaper87@gmail.com>2014-03-28 10:34:02 +0100
commit81ec1f3c186cd64450d8141aab467f0a1f3a7ebd (patch)
tree025bc116bb409b5514e9b42d62f19464531dffcd /src/libstd/slice.rs
parentff64381c8bf6a49a0671287de5f5b7316ae2ef9c (diff)
Rename Pod into Copy
Summary:
So far, we've used the term POD "Plain Old Data" to refer to types that
can be safely copied. However, this term is not consistent with the
other built-in bounds that use verbs instead. This patch renames the Pod
kind into Copy.

RFC: 0003-opt-in-builtin-traits

Test Plan: make check

Reviewers: cmr

Differential Revision: http://phabricator.octayn.net/D3
Diffstat (limited to 'src/libstd/slice.rs')
-rw-r--r--src/libstd/slice.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libstd/slice.rs b/src/libstd/slice.rs
index 8788a584f30..8602c653523 100644
--- a/src/libstd/slice.rs
+++ b/src/libstd/slice.rs
@@ -2304,12 +2304,12 @@ impl<'a,T> MutableVector<'a, T> for &'a mut [T] {
                 MutItems{ptr: p,
                          end: (p as uint + self.len()) as *mut T,
                          marker: marker::ContravariantLifetime::<'a>,
-                         marker2: marker::NoPod}
+                         marker2: marker::NoCopy}
             } else {
                 MutItems{ptr: p,
                          end: p.offset(self.len() as int),
                          marker: marker::ContravariantLifetime::<'a>,
-                         marker2: marker::NoPod}
+                         marker2: marker::NoCopy}
             }
         }
     }
@@ -2670,7 +2670,7 @@ pub struct MutItems<'a, T> {
     priv ptr: *mut T,
     priv end: *mut T,
     priv marker: marker::ContravariantLifetime<'a>,
-    priv marker2: marker::NoPod
+    priv marker2: marker::NoCopy
 }
 
 macro_rules! iterator {