diff options
| author | bors <bors@rust-lang.org> | 2013-03-27 20:27:52 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2013-03-27 20:27:52 -0700 |
| commit | 4954d3e50177c46d260a5340ff91bfada8590ef0 (patch) | |
| tree | 89f39e479f137db06f87abecbe3aaedb66e4a7a3 /src/libsyntax/parse | |
| parent | 88963367707c65ad9e84eb2f9f01a5874e90dd96 (diff) | |
| parent | f02ee42a869fea6fbfcea27b79fb71fbd5a055ec (diff) | |
| download | rust-4954d3e50177c46d260a5340ff91bfada8590ef0.tar.gz rust-4954d3e50177c46d260a5340ff91bfada8590ef0.zip | |
auto merge of #5575 : apasel422/rust/simplify-impls, r=thestinger
Diffstat (limited to 'src/libsyntax/parse')
| -rw-r--r-- | src/libsyntax/parse/comments.rs | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/src/libsyntax/parse/comments.rs b/src/libsyntax/parse/comments.rs index 1b6b25db38a..e5685cdb4c7 100644 --- a/src/libsyntax/parse/comments.rs +++ b/src/libsyntax/parse/comments.rs @@ -20,13 +20,13 @@ use parse::lexer; use parse::token; use parse; -use core::cmp; use core::io::ReaderUtil; use core::io; use core::str; use core::uint; use core::vec; +#[deriving(Eq)] pub enum cmnt_style { isolated, // No code on either side of each line of the comment trailing, // Code exists to the left of the comment @@ -34,15 +34,6 @@ pub enum cmnt_style { blank_line, // Just a manual blank line "\n\n", for layout } -impl cmp::Eq for cmnt_style { - fn eq(&self, other: &cmnt_style) -> bool { - ((*self) as uint) == ((*other) as uint) - } - fn ne(&self, other: &cmnt_style) -> bool { - ((*self) as uint) != ((*other) as uint) - } -} - pub struct cmnt { style: cmnt_style, lines: ~[~str], |
