rollup merge of #20593: nikomatsakis/unused-tps-in-impl

Conflicts:
	src/libcollections/lib.rs
	src/librustc/lib.rs
	src/libserialize/lib.rs
	src/libstd/lib.rs
This commit is contained in:
Alex Crichton 2015-01-06 15:31:39 -08:00
commit 3892dd1eaa
22 changed files with 283 additions and 24 deletions

View file

@ -979,8 +979,8 @@ pub enum Sign {
Plus
}
impl<T> Sign where T: Int {
pub fn new(n: T) -> Sign {
impl Sign {
pub fn new<T:Int>(n: T) -> Sign {
if n < Int::zero() {
Minus
} else {