File tree Expand file tree Collapse file tree 2 files changed +3
-12
lines changed Expand file tree Collapse file tree 2 files changed +3
-12
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: 819c6d1c048c909fe6bbdde4937dc832cf485849
2
+ refs/heads/master: 0419e36b76a3d00dd313dcb3b079604d3440d2ff
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: a6d9689399d091c3265f00434a69c551a61c28dc
5
5
refs/heads/try: ef355f6332f83371e4acf04fc4eb940ab41d78d3
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