Skip to content

Commit 4ec4f1c

Browse files
committed
---
yaml --- r: 44428 b: refs/heads/master c: 0419e36 h: refs/heads/master v: v3
1 parent 8e6e197 commit 4ec4f1c

File tree

2 files changed

+3
-12
lines changed

2 files changed

+3
-12
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 819c6d1c048c909fe6bbdde4937dc832cf485849
2+
refs/heads/master: 0419e36b76a3d00dd313dcb3b079604d3440d2ff
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: a6d9689399d091c3265f00434a69c551a61c28dc
55
refs/heads/try: ef355f6332f83371e4acf04fc4eb940ab41d78d3

trunk/src/libsyntax/ast.rs

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -783,6 +783,7 @@ pub impl float_ty : to_bytes::IterBytes {
783783
// NB Eq method appears below.
784784
#[auto_encode]
785785
#[auto_decode]
786+
#[deriving_eq]
786787
pub struct Ty {
787788
id: node_id,
788789
node: ty_,
@@ -855,6 +856,7 @@ pub struct TyClosure {
855856
856857
#[auto_encode]
857858
#[auto_decode]
859+
#[deriving_eq]
858860
pub struct TyBareFn {
859861
purity: purity,
860862
abi: Abi,
@@ -885,17 +887,6 @@ pub enum ty_ {
885887
ty_infer,
886888
}
887889
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-
899890
pub impl Ty : to_bytes::IterBytes {
900891
pure fn iter_bytes(&self, +lsb0: bool, f: to_bytes::Cb) {
901892
to_bytes::iter_bytes_2(&self.span.lo, &self.span.hi, lsb0, f);

0 commit comments

Comments
 (0)