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:
commit
3892dd1eaa
22 changed files with 283 additions and 24 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue