about summary refs log tree commit diff
path: root/src/librustdoc/doc.rs
diff options
context:
space:
mode:
authorPatrick Walton <pcwalton@mimiga.net>2013-02-14 11:47:00 -0800
committerPatrick Walton <pcwalton@mimiga.net>2013-02-14 14:44:12 -0800
commit9143688197ee1ba14e224badbe1402b36111e592 (patch)
tree44b298c748b863da2c2c855733f1b2d58075fa9b /src/librustdoc/doc.rs
parent8ec6f43d6c58588576743f5adb28b78dbc3bb057 (diff)
downloadrust-9143688197ee1ba14e224badbe1402b36111e592.tar.gz
rust-9143688197ee1ba14e224badbe1402b36111e592.zip
librustc: Replace `impl Type : Trait` with `impl Trait for Type`. rs=implflipping
Diffstat (limited to 'src/librustdoc/doc.rs')
-rw-r--r--src/librustdoc/doc.rs20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/librustdoc/doc.rs b/src/librustdoc/doc.rs
index 2eb4ed97871..40617e13b8d 100644
--- a/src/librustdoc/doc.rs
+++ b/src/librustdoc/doc.rs
@@ -284,7 +284,7 @@ pub trait PageUtils {
     fn types(&self) -> ~[TyDoc];
 }
 
-impl ~[Page]: PageUtils {
+impl PageUtils for ~[Page] {
 
     fn mods(&self) -> ~[ModDoc] {
         do vec::filter_mapped(*self) |page| {
@@ -363,7 +363,7 @@ pub trait Item {
     pure fn item(&self) -> ItemDoc;
 }
 
-impl ItemTag: Item {
+impl Item for ItemTag {
     pure fn item(&self) -> ItemDoc {
         match self {
           &doc::ModTag(ref doc) => copy doc.item,
@@ -379,31 +379,31 @@ impl ItemTag: Item {
     }
 }
 
-impl SimpleItemDoc: Item {
+impl Item for SimpleItemDoc {
     pure fn item(&self) -> ItemDoc { copy self.item }
 }
 
-impl ModDoc: Item {
+impl Item for ModDoc {
     pure fn item(&self) -> ItemDoc { copy self.item }
 }
 
-impl NmodDoc: Item {
+impl Item for NmodDoc {
     pure fn item(&self) -> ItemDoc { copy self.item }
 }
 
-impl EnumDoc: Item {
+impl Item for EnumDoc {
     pure fn item(&self) -> ItemDoc { copy self.item }
 }
 
-impl TraitDoc: Item {
+impl Item for TraitDoc {
     pure fn item(&self) -> ItemDoc { copy self.item }
 }
 
-impl ImplDoc: Item {
+impl Item for ImplDoc {
     pure fn item(&self) -> ItemDoc { copy self.item }
 }
 
-impl StructDoc: Item {
+impl Item for StructDoc {
     pure fn item(&self) -> ItemDoc { copy self.item }
 }
 
@@ -416,7 +416,7 @@ pub trait ItemUtils {
     pure fn sections(&self) -> ~[Section];
 }
 
-impl<A:Item> A: ItemUtils {
+impl<A:Item> ItemUtils for A {
     pure fn id(&self) -> AstId {
         self.item().id
     }