cleanup warnings from libsyntax

This commit is contained in:
Erick Tryzelaar 2013-05-23 09:39:24 -07:00
parent 609a9e69e1
commit a4df35f2bc
3 changed files with 4 additions and 7 deletions

View file

@ -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 {