diff options
| author | bors <bors@rust-lang.org> | 2013-05-23 18:10:36 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2013-05-23 18:10:36 -0700 |
| commit | a776d65b4d8e5eaad501af2b147cfbe1dbf10d3c (patch) | |
| tree | 1366910aafb8be2d6a9ef3872035e166a6dd8f65 /src/libsyntax/parse/parser.rs | |
| parent | 4bbc13d6db303264cea477972969bf88442a611b (diff) | |
| parent | cc4fabcb4361d0daada096f5e6ac19eb6ed21d33 (diff) | |
| download | rust-a776d65b4d8e5eaad501af2b147cfbe1dbf10d3c.tar.gz rust-a776d65b4d8e5eaad501af2b147cfbe1dbf10d3c.zip | |
auto merge of #6690 : erickt/rust/cleanup-warnings, r=brson
Simple patch series to fix up all the warnings a rustc compile is giving at the moment. It also fixes a NOTE in `to_bytes.rs` to remove the `to_bytes::iter_bytes_<N>` functions.
Diffstat (limited to 'src/libsyntax/parse/parser.rs')
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index 0a2d0ed924e..b8993520ae4 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -2752,7 +2752,7 @@ pub impl Parser { match *self.token { token::SEMI => { if !vec::is_empty(attributes_box) { - self.span_err(*self.last_span,~"expected item after attributes"); + self.span_err(*self.last_span, "expected item after attributes"); attributes_box = ~[]; } self.bump(); // empty @@ -2823,7 +2823,7 @@ pub impl Parser { } if !vec::is_empty(attributes_box) { - self.span_err(*self.last_span,~"expected item after attributes"); + self.span_err(*self.last_span, "expected item after attributes"); } let hi = self.span.hi; @@ -3742,7 +3742,7 @@ pub impl Parser { } = self.parse_foreign_items(first_item_attrs, true); if (! attrs_remaining.is_empty()) { self.span_err(*self.last_span, - ~"expected item after attributes"); + "expected item after attributes"); } assert!(*self.token == token::RBRACE); ast::foreign_mod { |
