From 44f1883832014d2edbc44a01c7ac835d50de7ff4 Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Fri, 3 Apr 2015 05:47:07 -0400 Subject: [PATCH] Remove Neg from Num trait As per /~https://github.com/rust-lang/rust/pull/23945, Neg is no longer implemented for unsigned types. Signed-off-by: Anders Kaseorg --- src/traits.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/traits.rs b/src/traits.rs index d79c80e1ad..016cf527d8 100644 --- a/src/traits.rs +++ b/src/traits.rs @@ -2,13 +2,13 @@ // Note copied from the stdlib under MIT license -use std::ops::{ Add, Div, Mul, Neg, Rem, Sub }; +use std::ops::{ Add, Div, Mul, Rem, Sub }; use std::num::{ Float, Int, NumCast }; use std::marker::Reflect; /// Num trait from old stdlib -pub trait Num: Zero + One + Add + Sub + Mul + Div + Rem + Neg + PartialEq { } -impl + Sub + Mul + Div + Rem + Neg + PartialEq> Num for A { } +pub trait Num: Zero + One + Add + Sub + Mul + Div + Rem + PartialEq { } +impl + Sub + Mul + Div + Rem + PartialEq> Num for A { } /// Zero trait from old stdlib pub trait Zero: Add {