@@ -358,11 +358,11 @@ impl PageUtils for ~[Page] {
358358}
359359
360360pub trait Item {
361- pure fn item ( & self ) -> ItemDoc ;
361+ fn item ( & self ) -> ItemDoc ;
362362}
363363
364364impl Item for ItemTag {
365- pure fn item ( & self ) -> ItemDoc {
365+ fn item ( & self ) -> ItemDoc {
366366 match self {
367367 & doc:: ModTag ( ref doc) => copy doc. item ,
368368 & doc:: NmodTag ( ref doc) => copy doc. item ,
@@ -378,64 +378,64 @@ impl Item for ItemTag {
378378}
379379
380380impl Item for SimpleItemDoc {
381- pure fn item ( & self ) -> ItemDoc { copy self . item }
381+ fn item ( & self ) -> ItemDoc { copy self . item }
382382}
383383
384384impl Item for ModDoc {
385- pure fn item ( & self ) -> ItemDoc { copy self . item }
385+ fn item ( & self ) -> ItemDoc { copy self . item }
386386}
387387
388388impl Item for NmodDoc {
389- pure fn item ( & self ) -> ItemDoc { copy self . item }
389+ fn item ( & self ) -> ItemDoc { copy self . item }
390390}
391391
392392impl Item for EnumDoc {
393- pure fn item ( & self ) -> ItemDoc { copy self . item }
393+ fn item ( & self ) -> ItemDoc { copy self . item }
394394}
395395
396396impl Item for TraitDoc {
397- pure fn item ( & self ) -> ItemDoc { copy self . item }
397+ fn item ( & self ) -> ItemDoc { copy self . item }
398398}
399399
400400impl Item for ImplDoc {
401- pure fn item ( & self ) -> ItemDoc { copy self . item }
401+ fn item ( & self ) -> ItemDoc { copy self . item }
402402}
403403
404404impl Item for StructDoc {
405- pure fn item ( & self ) -> ItemDoc { copy self . item }
405+ fn item ( & self ) -> ItemDoc { copy self . item }
406406}
407407
408408pub trait ItemUtils {
409- pure fn id ( & self ) -> AstId ;
410- pure fn name ( & self ) -> ~str ;
411- pure fn path ( & self ) -> ~[ ~str ] ;
412- pure fn brief ( & self ) -> Option < ~str > ;
413- pure fn desc ( & self ) -> Option < ~str > ;
414- pure fn sections ( & self ) -> ~[ Section ] ;
409+ fn id ( & self ) -> AstId ;
410+ fn name ( & self ) -> ~str ;
411+ fn path ( & self ) -> ~[ ~str ] ;
412+ fn brief ( & self ) -> Option < ~str > ;
413+ fn desc ( & self ) -> Option < ~str > ;
414+ fn sections ( & self ) -> ~[ Section ] ;
415415}
416416
417417impl < A : Item > ItemUtils for A {
418- pure fn id ( & self ) -> AstId {
418+ fn id ( & self ) -> AstId {
419419 self . item ( ) . id
420420 }
421421
422- pure fn name ( & self ) -> ~str {
422+ fn name ( & self ) -> ~str {
423423 copy self . item ( ) . name
424424 }
425425
426- pure fn path ( & self ) -> ~[ ~str ] {
426+ fn path ( & self ) -> ~[ ~str ] {
427427 copy self . item ( ) . path
428428 }
429429
430- pure fn brief ( & self ) -> Option < ~str > {
430+ fn brief ( & self ) -> Option < ~str > {
431431 copy self . item ( ) . brief
432432 }
433433
434- pure fn desc ( & self ) -> Option < ~str > {
434+ fn desc ( & self ) -> Option < ~str > {
435435 copy self . item ( ) . desc
436436 }
437437
438- pure fn sections ( & self ) -> ~[ Section ] {
438+ fn sections ( & self ) -> ~[ Section ] {
439439 copy self . item ( ) . sections
440440 }
441441}
0 commit comments