diff options
| author | bors <bors@rust-lang.org> | 2013-02-13 18:49:29 -0800 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2013-02-13 18:49:29 -0800 |
| commit | 6efa3543a8b38f0dcbe89e7bf6d14f571bad46ac (patch) | |
| tree | 52ddd48eee689ac78b216e2165a63d9ea90ffa39 /src/libsyntax/codemap.rs | |
| parent | 0ae74bef188fe4f1fff69c0fa85d308c40bce7f8 (diff) | |
| parent | f9d789fa083220cc9d84cbea94868606600c64a9 (diff) | |
| download | rust-6efa3543a8b38f0dcbe89e7bf6d14f571bad46ac.tar.gz rust-6efa3543a8b38f0dcbe89e7bf6d14f571bad46ac.zip | |
auto merge of #4922 : jbclements/rust/add-deriving-eq-to-asts, r=catamorphism
r? Apply deriving_eq to the data structures in ast.rs, and get rid of the custom definitions of eq that were everywhere. resulting ast.rs is about 400 lines shorter. Also: add a few test cases and a bunch of comments. Also: change ast_ty_to_ty_cache to use node ids rather than ast::ty's. I believe this was a suggestion related to my changes, and it appears to pass all tests. Also: tiny doc fix, remove references to crate keywords.
Diffstat (limited to 'src/libsyntax/codemap.rs')
| -rw-r--r-- | src/libsyntax/codemap.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libsyntax/codemap.rs b/src/libsyntax/codemap.rs index b41e84a04f8..10a4e12bef4 100644 --- a/src/libsyntax/codemap.rs +++ b/src/libsyntax/codemap.rs @@ -130,6 +130,7 @@ pub struct span { #[auto_encode] #[auto_decode] +#[deriving_eq] pub struct spanned<T> { node: T, span: span } pub impl span : cmp::Eq { |
