@@ -660,46 +660,46 @@ pub trait Vid {
660
660
pure fn to_uint ( & self ) -> uint ;
661
661
}
662
662
663
- pub impl Vid for TyVid {
663
+ impl Vid for TyVid {
664
664
pure fn to_uint ( & self ) -> uint { * * self }
665
665
}
666
666
667
- pub impl ToStr for TyVid {
667
+ impl ToStr for TyVid {
668
668
pure fn to_str ( & self ) -> ~str { fmt ! ( "<V%u>" , self . to_uint( ) ) }
669
669
}
670
670
671
- pub impl Vid for IntVid {
671
+ impl Vid for IntVid {
672
672
pure fn to_uint ( & self ) -> uint { * * self }
673
673
}
674
674
675
- pub impl ToStr for IntVid {
675
+ impl ToStr for IntVid {
676
676
pure fn to_str ( & self ) -> ~str { fmt ! ( "<VI%u>" , self . to_uint( ) ) }
677
677
}
678
678
679
- pub impl Vid for FloatVid {
679
+ impl Vid for FloatVid {
680
680
pure fn to_uint ( & self ) -> uint { * * self }
681
681
}
682
682
683
- pub impl ToStr for FloatVid {
683
+ impl ToStr for FloatVid {
684
684
pure fn to_str ( & self ) -> ~str { fmt ! ( "<VF%u>" , self . to_uint( ) ) }
685
685
}
686
686
687
- pub impl Vid for RegionVid {
687
+ impl Vid for RegionVid {
688
688
pure fn to_uint ( & self ) -> uint { * * self }
689
689
}
690
690
691
- pub impl ToStr for RegionVid {
691
+ impl ToStr for RegionVid {
692
692
pure fn to_str ( & self ) -> ~str { fmt ! ( "%?" , self ) }
693
693
}
694
694
695
- pub impl ToStr for FnSig {
695
+ impl ToStr for FnSig {
696
696
pure fn to_str ( & self ) -> ~str {
697
697
// grr, without tcx not much we can do.
698
698
return ~"( ... ) ";
699
699
}
700
700
}
701
701
702
- pub impl ToStr for InferTy {
702
+ impl ToStr for InferTy {
703
703
pure fn to_str ( & self ) -> ~str {
704
704
match * self {
705
705
TyVar ( ref v) => v. to_str ( ) ,
@@ -709,7 +709,7 @@ pub impl ToStr for InferTy {
709
709
}
710
710
}
711
711
712
- pub impl ToStr for IntVarValue {
712
+ impl ToStr for IntVarValue {
713
713
pure fn to_str ( & self ) -> ~str {
714
714
match * self {
715
715
IntType ( ref v) => v. to_str ( ) ,
@@ -718,25 +718,25 @@ pub impl ToStr for IntVarValue {
718
718
}
719
719
}
720
720
721
- pub impl to_bytes:: IterBytes for TyVid {
721
+ impl to_bytes:: IterBytes for TyVid {
722
722
pure fn iter_bytes ( & self , +lsb0 : bool , f : to_bytes:: Cb ) {
723
723
self . to_uint ( ) . iter_bytes ( lsb0, f)
724
724
}
725
725
}
726
726
727
- pub impl to_bytes:: IterBytes for IntVid {
727
+ impl to_bytes:: IterBytes for IntVid {
728
728
pure fn iter_bytes ( & self , +lsb0 : bool , f : to_bytes:: Cb ) {
729
729
self . to_uint ( ) . iter_bytes ( lsb0, f)
730
730
}
731
731
}
732
732
733
- pub impl to_bytes:: IterBytes for FloatVid {
733
+ impl to_bytes:: IterBytes for FloatVid {
734
734
pure fn iter_bytes ( & self , +lsb0 : bool , f : to_bytes:: Cb ) {
735
735
self . to_uint ( ) . iter_bytes ( lsb0, f)
736
736
}
737
737
}
738
738
739
- pub impl to_bytes:: IterBytes for RegionVid {
739
+ impl to_bytes:: IterBytes for RegionVid {
740
740
pure fn iter_bytes ( & self , +lsb0 : bool , f : to_bytes:: Cb ) {
741
741
self . to_uint ( ) . iter_bytes ( lsb0, f)
742
742
}
0 commit comments