diff options
| author | Patrick Walton <pcwalton@mimiga.net> | 2013-02-14 11:47:00 -0800 |
|---|---|---|
| committer | Patrick Walton <pcwalton@mimiga.net> | 2013-02-14 14:44:12 -0800 |
| commit | 9143688197ee1ba14e224badbe1402b36111e592 (patch) | |
| tree | 44b298c748b863da2c2c855733f1b2d58075fa9b /src/libsyntax/parse | |
| parent | 8ec6f43d6c58588576743f5adb28b78dbc3bb057 (diff) | |
| download | rust-9143688197ee1ba14e224badbe1402b36111e592.tar.gz rust-9143688197ee1ba14e224badbe1402b36111e592.zip | |
librustc: Replace `impl Type : Trait` with `impl Trait for Type`. rs=implflipping
Diffstat (limited to 'src/libsyntax/parse')
| -rw-r--r-- | src/libsyntax/parse/attr.rs | 2 | ||||
| -rw-r--r-- | src/libsyntax/parse/comments.rs | 2 | ||||
| -rw-r--r-- | src/libsyntax/parse/lexer.rs | 2 | ||||
| -rw-r--r-- | src/libsyntax/parse/token.rs | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/src/libsyntax/parse/attr.rs b/src/libsyntax/parse/attr.rs index e6ba543cf79..e297e33d825 100644 --- a/src/libsyntax/parse/attr.rs +++ b/src/libsyntax/parse/attr.rs @@ -30,7 +30,7 @@ pub trait parser_attr { fn parse_optional_meta() -> ~[@ast::meta_item]; } -impl Parser: parser_attr { +impl parser_attr for Parser { // Parse attributes that appear before an item fn parse_outer_attributes() -> ~[ast::attribute] { diff --git a/src/libsyntax/parse/comments.rs b/src/libsyntax/parse/comments.rs index 1e17cf3543d..2cadf195778 100644 --- a/src/libsyntax/parse/comments.rs +++ b/src/libsyntax/parse/comments.rs @@ -34,7 +34,7 @@ pub enum cmnt_style { blank_line, // Just a manual blank line "\n\n", for layout } -impl cmnt_style : cmp::Eq { +impl cmp::Eq for cmnt_style { pure fn eq(&self, other: &cmnt_style) -> bool { ((*self) as uint) == ((*other) as uint) } diff --git a/src/libsyntax/parse/lexer.rs b/src/libsyntax/parse/lexer.rs index 48ba94bdc33..f5fbefdd89b 100644 --- a/src/libsyntax/parse/lexer.rs +++ b/src/libsyntax/parse/lexer.rs @@ -108,7 +108,7 @@ fn dup_string_reader(r: @mut StringReader) -> @mut StringReader { } } -impl StringReader: reader { +impl reader for StringReader { fn is_eof(@mut self) -> bool { is_eof(self) } // return the next token. EFFECT: advances the string_reader. fn next_token(@mut self) -> TokenAndSpan { diff --git a/src/libsyntax/parse/token.rs b/src/libsyntax/parse/token.rs index 92d25d5d193..3279c79e5af 100644 --- a/src/libsyntax/parse/token.rs +++ b/src/libsyntax/parse/token.rs @@ -520,7 +520,7 @@ pub fn reserved_keyword_table() -> HashMap<~str, ()> { } -impl Token : cmp::Eq { +impl cmp::Eq for Token { pure fn eq(&self, other: &Token) -> bool { match (*self) { EQ => { |
