File tree Expand file tree Collapse file tree 3 files changed +4
-7
lines changed Expand file tree Collapse file tree 3 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -17,9 +17,8 @@ use abi::AbiSet;
17
17
use opt_vec:: OptVec ;
18
18
use parse:: token:: get_ident_interner;
19
19
20
- use core:: cast;
21
20
use core:: hashmap:: HashMap ;
22
- use core:: option:: { Option } ;
21
+ use core:: option:: Option ;
23
22
use core:: to_bytes:: IterBytes ;
24
23
use core:: to_bytes;
25
24
use core:: to_str:: ToStr ;
Original file line number Diff line number Diff line change 15
15
16
16
use core:: prelude:: * ;
17
17
18
- use abi:: AbiSet ;
19
18
use ast:: ident;
20
19
use ast;
21
20
use codemap:: span;
22
- // use ext::quote::rt::*;
23
21
24
22
// Transitional reexports so qquote can find the paths it is looking for
25
23
mod syntax {
Original file line number Diff line number Diff line change @@ -2752,7 +2752,7 @@ pub impl Parser {
2752
2752
match * self . token {
2753
2753
token:: SEMI => {
2754
2754
if !vec:: is_empty ( attributes_box) {
2755
- self . span_err ( * self . last_span , ~ "expected item after attributes") ;
2755
+ self . span_err ( * self . last_span , "expected item after attributes" ) ;
2756
2756
attributes_box = ~[ ] ;
2757
2757
}
2758
2758
self . bump ( ) ; // empty
@@ -2823,7 +2823,7 @@ pub impl Parser {
2823
2823
}
2824
2824
2825
2825
if !vec:: is_empty ( attributes_box) {
2826
- self . span_err ( * self . last_span , ~ "expected item after attributes") ;
2826
+ self . span_err ( * self . last_span , "expected item after attributes" ) ;
2827
2827
}
2828
2828
2829
2829
let hi = self . span . hi ;
@@ -3742,7 +3742,7 @@ pub impl Parser {
3742
3742
} = self . parse_foreign_items( first_item_attrs, true ) ;
3743
3743
if ( ! attrs_remaining. is_empty( ) ) {
3744
3744
self . span_err( * self . last_span,
3745
- ~ "expected item after attributes") ;
3745
+ "expected item after attributes" ) ;
3746
3746
}
3747
3747
assert ! ( * self . token == token:: RBRACE ) ;
3748
3748
ast:: foreign_mod {
You can’t perform that action at this time.
0 commit comments