Move over to calling ptr::addr_of
Everything should now call ptr::addr_of instead of ptr::p2::addr_of. Only the pipes macro code when compiled by stage0 will call ptr::p2::addr_of. Needs a snapshot to get rid of that.
This commit is contained in:
parent
72ae42627b
commit
b18320446e
54 changed files with 169 additions and 172 deletions
|
@ -1094,10 +1094,10 @@ enum ty_ {
|
|||
// since we only care about this for normalizing them to "real" types.
|
||||
impl ty : cmp::Eq {
|
||||
pure fn eq(other: &ty) -> bool {
|
||||
ptr::addr_of(self) == ptr::addr_of((*other))
|
||||
ptr::addr_of(&self) == ptr::addr_of(&(*other))
|
||||
}
|
||||
pure fn ne(other: &ty) -> bool {
|
||||
ptr::addr_of(self) != ptr::addr_of((*other))
|
||||
ptr::addr_of(&self) != ptr::addr_of(&(*other))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue