10
10
11
11
// The Rust abstract syntax tree.
12
12
13
- use ast;
14
13
use codemap:: { span, FileName } ;
15
14
16
15
use core:: cast;
@@ -323,7 +322,7 @@ type field_pat = {ident: ident, pat: @pat};
323
322
enum binding_mode {
324
323
bind_by_value,
325
324
bind_by_move ,
326
- bind_by_ref ( ast :: mutability ) ,
325
+ bind_by_ref ( mutability ) ,
327
326
bind_infer
328
327
}
329
328
@@ -455,7 +454,7 @@ enum expr_vstore {
455
454
expr_vstore_mut_slice, // &mut [1,2,3,4]
456
455
}
457
456
458
- pure fn is_blockish ( p : ast :: Proto ) -> bool {
457
+ pure fn is_blockish ( p : Proto ) -> bool {
459
458
match p {
460
459
ProtoBorrowed => true ,
461
460
ProtoBare | ProtoUniq | ProtoBox => false
@@ -862,8 +861,8 @@ enum lit_ {
862
861
lit_bool( bool ) ,
863
862
}
864
863
865
- impl ast :: lit_ : cmp:: Eq {
866
- pure fn eq ( & self , other : & ast :: lit_ ) -> bool {
864
+ impl lit_: cmp:: Eq {
865
+ pure fn eq ( & self , other : & lit_ ) -> bool {
867
866
match ( ( * self ) , * other) {
868
867
( lit_str( a) , lit_str( b) ) => a == b,
869
868
( lit_int( val_a, ty_a) , lit_int( val_b, ty_b) ) => {
@@ -889,7 +888,7 @@ impl ast::lit_: cmp::Eq {
889
888
( lit_bool( _) , _) => false
890
889
}
891
890
}
892
- pure fn ne ( & self , other : & ast :: lit_ ) -> bool { !( * self ) . eq ( other) }
891
+ pure fn ne ( & self , other : & lit_ ) -> bool { !( * self ) . eq ( other) }
893
892
}
894
893
895
894
// NB: If you change this, you'll probably want to change the corresponding
@@ -1075,8 +1074,8 @@ enum Onceness {
1075
1074
impl Onceness : ToStr {
1076
1075
pure fn to_str ( ) -> ~str {
1077
1076
match self {
1078
- ast :: Once => ~"once",
1079
- ast :: Many => ~"many"
1077
+ Once => ~"once",
1078
+ Many => ~"many"
1080
1079
}
1081
1080
}
1082
1081
}
0 commit comments