diff options
| author | Patrick Walton <pcwalton@mimiga.net> | 2013-02-14 11:47:00 -0800 |
|---|---|---|
| committer | Patrick Walton <pcwalton@mimiga.net> | 2013-02-14 11:47:00 -0800 |
| commit | e8f36d5ea0a56250109d93656130b442d2e59e4c (patch) | |
| tree | d8b1be86a79e6b1c0a48141857421386cbbab34a /src/libsyntax/parse | |
| parent | 36edd256397d250ce35204ba1a0954609c25a20a (diff) | |
| download | rust-e8f36d5ea0a56250109d93656130b442d2e59e4c.tar.gz rust-e8f36d5ea0a56250109d93656130b442d2e59e4c.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 => { |
