Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 9143688

Browse files
committedFeb 14, 2013
librustc: Replace impl Type : Trait with impl Trait for Type. rs=implflipping
1 parent 8ec6f43 commit 9143688

File tree

583 files changed

+1115
-1115
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

583 files changed

+1115
-1115
lines changed
 

‎src/libcore/managed.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,15 +46,15 @@ pub pure fn mut_ptr_eq<T>(a: @mut T, b: @mut T) -> bool {
4646
}
4747

4848
#[cfg(notest)]
49-
impl<T:Eq> @const T : Eq {
49+
impl<T:Eq> Eq for @const T {
5050
#[inline(always)]
5151
pure fn eq(&self, other: &@const T) -> bool { *(*self) == *(*other) }
5252
#[inline(always)]
5353
pure fn ne(&self, other: &@const T) -> bool { *(*self) != *(*other) }
5454
}
5555

5656
#[cfg(notest)]
57-
impl<T:Ord> @const T : Ord {
57+
impl<T:Ord> Ord for @const T {
5858
#[inline(always)]
5959
pure fn lt(&self, other: &@const T) -> bool { *(*self) < *(*other) }
6060
#[inline(always)]

‎src/libcore/nil.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@ Functions for the unit type.
1717
use cmp::{Eq, Ord};
1818

1919
#[cfg(notest)]
20-
impl () : Eq {
20+
impl Eq for () {
2121
#[inline(always)]
2222
pure fn eq(&self, _other: &()) -> bool { true }
2323
#[inline(always)]
2424
pure fn ne(&self, _other: &()) -> bool { false }
2525
}
2626

2727
#[cfg(notest)]
28-
impl () : Ord {
28+
impl Ord for () {
2929
#[inline(always)]
3030
pure fn lt(&self, _other: &()) -> bool { false }
3131
#[inline(always)]
There was a problem loading the remainder of the diff.

0 commit comments

Comments
 (0)
Failed to load comments.