about summary refs log tree commit diff
path: root/src/libsyntax
diff options
context:
space:
mode:
authorTim Chevalier <chevalier@alum.wellesley.edu>2013-01-14 17:35:12 -0800
committerTim Chevalier <chevalier@alum.wellesley.edu>2013-01-14 17:35:12 -0800
commit1be4bfb8ccfd6a91fe63cc2808f3c5e9177d52dd (patch)
tree8dd793dbb14ec5ffd42a7957dc42dcf4df77d004 /src/libsyntax
parenta4dc65baa1caa2ef3e78b3fa8e330dda99d1e752 (diff)
parentdd621bd58d09872333926c3a761a1ee9205e6224 (diff)
downloadrust-1be4bfb8ccfd6a91fe63cc2808f3c5e9177d52dd.tar.gz
rust-1be4bfb8ccfd6a91fe63cc2808f3c5e9177d52dd.zip
Merge pull request #4491 from jbclements/removed-ast-self-import
removed self-import (minor cleanup)
Diffstat (limited to 'src/libsyntax')
-rw-r--r--src/libsyntax/ast.rs15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/libsyntax/ast.rs b/src/libsyntax/ast.rs
index 2cd873414c4..050ec25d16c 100644
--- a/src/libsyntax/ast.rs
+++ b/src/libsyntax/ast.rs
@@ -10,7 +10,6 @@
 
 // The Rust abstract syntax tree.
 
-use ast;
 use codemap::{span, FileName};
 
 use core::cast;
@@ -323,7 +322,7 @@ type field_pat = {ident: ident, pat: @pat};
 enum binding_mode {
     bind_by_value,
     bind_by_move,
-    bind_by_ref(ast::mutability),
+    bind_by_ref(mutability),
     bind_infer
 }
 
@@ -455,7 +454,7 @@ enum expr_vstore {
     expr_vstore_mut_slice,             // &mut [1,2,3,4]
 }
 
-pure fn is_blockish(p: ast::Proto) -> bool {
+pure fn is_blockish(p: Proto) -> bool {
     match p {
         ProtoBorrowed => true,
         ProtoBare | ProtoUniq | ProtoBox => false
@@ -862,8 +861,8 @@ enum lit_ {
     lit_bool(bool),
 }
 
-impl ast::lit_: cmp::Eq {
-    pure fn eq(&self, other: &ast::lit_) -> bool {
+impl lit_: cmp::Eq {
+    pure fn eq(&self, other: &lit_) -> bool {
         match ((*self), *other) {
             (lit_str(a), lit_str(b)) => a == b,
             (lit_int(val_a, ty_a), lit_int(val_b, ty_b)) => {
@@ -889,7 +888,7 @@ impl ast::lit_: cmp::Eq {
             (lit_bool(_), _) => false
         }
     }
-    pure fn ne(&self, other: &ast::lit_) -> bool { !(*self).eq(other) }
+    pure fn ne(&self, other: &lit_) -> bool { !(*self).eq(other) }
 }
 
 // NB: If you change this, you'll probably want to change the corresponding
@@ -1075,8 +1074,8 @@ enum Onceness {
 impl Onceness : ToStr {
     pure fn to_str() -> ~str {
         match self {
-            ast::Once => ~"once",
-            ast::Many => ~"many"
+            Once => ~"once",
+            Many => ~"many"
         }
     }
 }