Skip to content

Commit f0eb3dd

Browse files
committed
---
yaml --- r: 79560 b: refs/heads/master c: 8445009 h: refs/heads/master v: v3
1 parent 8f6f055 commit f0eb3dd

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 0fcb85997db852350c104b40e3d7c78214bb0708
2+
refs/heads/master: 8445009a846877fe66160d126566e9757db05cd2
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: eae327032c775813eeb101233a4f7df24eab0a6a
55
refs/heads/try: ac820906c0e53eab79a98ee64f7231f57c3887b4

trunk/src/libstd/num/num.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
1616
#[allow(missing_doc)];
1717

18+
use clone::{Clone, DeepClone};
1819
use cmp::{Eq, ApproxEq, Ord};
1920
use ops::{Add, Sub, Mul, Div, Rem, Neg};
2021
use ops::{Not, BitAnd, BitOr, BitXor, Shl, Shr};
@@ -274,7 +275,9 @@ pub trait Bounded {
274275
/// Specifies the available operations common to all of Rust's core numeric primitives.
275276
/// These may not always make sense from a purely mathematical point of view, but
276277
/// may be useful for systems programming.
277-
pub trait Primitive: Num
278+
pub trait Primitive: Clone
279+
+ DeepClone
280+
+ Num
278281
+ NumCast
279282
+ Bounded
280283
+ Neg<Self>

0 commit comments

Comments
 (0)