1010
1111// The Rust abstract syntax tree.
1212
13- use ast;
1413use codemap:: { span, FileName } ;
1514
1615use core:: cast;
@@ -323,7 +322,7 @@ type field_pat = {ident: ident, pat: @pat};
323322enum binding_mode {
324323 bind_by_value,
325324 bind_by_move ,
326- bind_by_ref ( ast :: mutability ) ,
325+ bind_by_ref ( mutability ) ,
327326 bind_infer
328327}
329328
@@ -455,7 +454,7 @@ enum expr_vstore {
455454 expr_vstore_mut_slice, // &mut [1,2,3,4]
456455}
457456
458- pure fn is_blockish ( p : ast :: Proto ) -> bool {
457+ pure fn is_blockish ( p : Proto ) -> bool {
459458 match p {
460459 ProtoBorrowed => true ,
461460 ProtoBare | ProtoUniq | ProtoBox => false
@@ -862,8 +861,8 @@ enum lit_ {
862861 lit_bool( bool ) ,
863862}
864863
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 {
867866 match ( ( * self ) , * other) {
868867 ( lit_str( a) , lit_str( b) ) => a == b,
869868 ( lit_int( val_a, ty_a) , lit_int( val_b, ty_b) ) => {
@@ -889,7 +888,7 @@ impl ast::lit_: cmp::Eq {
889888 ( lit_bool( _) , _) => false
890889 }
891890 }
892- pure fn ne ( & self , other : & ast :: lit_ ) -> bool { !( * self ) . eq ( other) }
891+ pure fn ne ( & self , other : & lit_ ) -> bool { !( * self ) . eq ( other) }
893892}
894893
895894// NB: If you change this, you'll probably want to change the corresponding
@@ -1075,8 +1074,8 @@ enum Onceness {
10751074impl Onceness : ToStr {
10761075 pure fn to_str ( ) -> ~str {
10771076 match self {
1078- ast :: Once => ~"once",
1079- ast :: Many => ~"many"
1077+ Once => ~"once",
1078+ Many => ~"many"
10801079 }
10811080 }
10821081}
0 commit comments