File tree 1 file changed +2
-11
lines changed
1 file changed +2
-11
lines changed Original file line number Diff line number Diff line change @@ -783,6 +783,7 @@ pub impl float_ty : to_bytes::IterBytes {
783
783
// NB Eq method appears below.
784
784
#[auto_encode]
785
785
#[auto_decode]
786
+ #[deriving_eq]
786
787
pub struct Ty {
787
788
id: node_id,
788
789
node: ty_,
@@ -855,6 +856,7 @@ pub struct TyClosure {
855
856
856
857
#[auto_encode]
857
858
#[auto_decode]
859
+ #[deriving_eq]
858
860
pub struct TyBareFn {
859
861
purity: purity,
860
862
abi: Abi,
@@ -885,17 +887,6 @@ pub enum ty_ {
885
887
ty_infer,
886
888
}
887
889
888
- // Equality and byte-iter (hashing) can be quite approximate for AST types.
889
- // since we only care about this for normalizing them to " real" types.
890
- pub impl Ty : cmp::Eq {
891
- pure fn eq(&self, other: &Ty) -> bool {
892
- ptr::addr_of(&(*self)) == ptr::addr_of(&(*other))
893
- }
894
- pure fn ne(&self, other: &Ty) -> bool {
895
- ptr::addr_of(&(*self)) != ptr::addr_of(&(*other))
896
- }
897
- }
898
-
899
890
pub impl Ty : to_bytes::IterBytes {
900
891
pure fn iter_bytes(&self, +lsb0: bool, f: to_bytes::Cb) {
901
892
to_bytes::iter_bytes_2(&self.span.lo, &self.span.hi, lsb0, f);
You can’t perform that action at this time.
0 commit comments