cleanup warnings from libsyntax
This commit is contained in:
parent
609a9e69e1
commit
a4df35f2bc
3 changed files with 4 additions and 7 deletions
|
@ -17,9 +17,8 @@ use abi::AbiSet;
|
||||||
use opt_vec::OptVec;
|
use opt_vec::OptVec;
|
||||||
use parse::token::get_ident_interner;
|
use parse::token::get_ident_interner;
|
||||||
|
|
||||||
use core::cast;
|
|
||||||
use core::hashmap::HashMap;
|
use core::hashmap::HashMap;
|
||||||
use core::option::{Option};
|
use core::option::Option;
|
||||||
use core::to_bytes::IterBytes;
|
use core::to_bytes::IterBytes;
|
||||||
use core::to_bytes;
|
use core::to_bytes;
|
||||||
use core::to_str::ToStr;
|
use core::to_str::ToStr;
|
||||||
|
|
|
@ -15,11 +15,9 @@
|
||||||
|
|
||||||
use core::prelude::*;
|
use core::prelude::*;
|
||||||
|
|
||||||
use abi::AbiSet;
|
|
||||||
use ast::ident;
|
use ast::ident;
|
||||||
use ast;
|
use ast;
|
||||||
use codemap::span;
|
use codemap::span;
|
||||||
// use ext::quote::rt::*;
|
|
||||||
|
|
||||||
// Transitional reexports so qquote can find the paths it is looking for
|
// Transitional reexports so qquote can find the paths it is looking for
|
||||||
mod syntax {
|
mod syntax {
|
||||||
|
|
|
@ -2752,7 +2752,7 @@ pub impl Parser {
|
||||||
match *self.token {
|
match *self.token {
|
||||||
token::SEMI => {
|
token::SEMI => {
|
||||||
if !vec::is_empty(attributes_box) {
|
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 = ~[];
|
attributes_box = ~[];
|
||||||
}
|
}
|
||||||
self.bump(); // empty
|
self.bump(); // empty
|
||||||
|
@ -2823,7 +2823,7 @@ pub impl Parser {
|
||||||
}
|
}
|
||||||
|
|
||||||
if !vec::is_empty(attributes_box) {
|
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;
|
let hi = self.span.hi;
|
||||||
|
@ -3742,7 +3742,7 @@ pub impl Parser {
|
||||||
} = self.parse_foreign_items(first_item_attrs, true);
|
} = self.parse_foreign_items(first_item_attrs, true);
|
||||||
if (! attrs_remaining.is_empty()) {
|
if (! attrs_remaining.is_empty()) {
|
||||||
self.span_err(*self.last_span,
|
self.span_err(*self.last_span,
|
||||||
~"expected item after attributes");
|
"expected item after attributes");
|
||||||
}
|
}
|
||||||
assert!(*self.token == token::RBRACE);
|
assert!(*self.token == token::RBRACE);
|
||||||
ast::foreign_mod {
|
ast::foreign_mod {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue