about summary refs log tree commit diff
path: root/src/libstd/num
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/num
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/libstd/num')
-rw-r--r--src/libstd/num/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/num/mod.rs b/src/libstd/num/mod.rs
index 202e26e2c93..d09cf28357b 100644
--- a/src/libstd/num/mod.rs
+++ b/src/libstd/num/mod.rs
@@ -17,7 +17,7 @@
 
 use clone::Clone;
 use cmp::{Eq, Ord};
-use kinds::Pod;
+use kinds::Copy;
 use mem::size_of;
 use ops::{Add, Sub, Mul, Div, Rem, Neg};
 use ops::{Not, BitAnd, BitOr, BitXor, Shl, Shr};
@@ -276,7 +276,7 @@ pub trait Bitwise: Bounded
 /// Specifies the available operations common to all of Rust's core numeric primitives.
 /// These may not always make sense from a purely mathematical point of view, but
 /// may be useful for systems programming.
-pub trait Primitive: Pod
+pub trait Primitive: Copy
                    + Clone
                    + Num
                    + NumCast