about summary refs log tree commit diff
path: root/src/libsync
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/libsync
parentff64381c8bf6a49a0671287de5f5b7316ae2ef9c (diff)
downloadrust-81ec1f3c186cd64450d8141aab467f0a1f3a7ebd.tar.gz
rust-81ec1f3c186cd64450d8141aab467f0a1f3a7ebd.zip
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/libsync')
-rw-r--r--src/libsync/raw.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libsync/raw.rs b/src/libsync/raw.rs
index 0cb9bf77ac9..ba53b3b2e95 100644
--- a/src/libsync/raw.rs
+++ b/src/libsync/raw.rs
@@ -192,7 +192,7 @@ impl Sem<Vec<WaitQueue>> {
     pub fn access_cond<'a>(&'a self) -> SemCondGuard<'a> {
         SemCondGuard {
             guard: self.access(),
-            cvar: Condvar { sem: self, order: Nothing, nopod: marker::NoPod },
+            cvar: Condvar { sem: self, order: Nothing, nocopy: marker::NoCopy },
         }
     }
 }
@@ -218,7 +218,7 @@ pub struct Condvar<'a> {
     // See the comment in write_cond for more detail.
     priv order: ReacquireOrderLock<'a>,
     // Make sure condvars are non-copyable.
-    priv nopod: marker::NoPod,
+    priv nocopy: marker::NoCopy,
 }
 
 impl<'a> Condvar<'a> {
@@ -565,7 +565,7 @@ impl RWLock {
             cond: Condvar {
                 sem: &self.access_lock,
                 order: Just(&self.order_lock),
-                nopod: marker::NoPod,
+                nocopy: marker::NoCopy,
             }
         }
     }