about summary refs log tree commit diff
path: root/src/libsyntax/ast_util.rs
diff options
context:
space:
mode:
authorMarvin Löbel <loebel.marvin@gmail.com>2013-08-31 18:13:04 +0200
committerMarvin Löbel <loebel.marvin@gmail.com>2013-09-01 14:43:26 +0200
commit539f37925c4364aa46e984df6ae2ec7e66cecc21 (patch)
treeab15f69ecc2e88e7e5ae5ea80cf572e336df92a1 /src/libsyntax/ast_util.rs
parent617850131b795312c4dd404ae7d853b54d883105 (diff)
downloadrust-539f37925c4364aa46e984df6ae2ec7e66cecc21.tar.gz
rust-539f37925c4364aa46e984df6ae2ec7e66cecc21.zip
Modernized a few type names in rustc and syntax
Diffstat (limited to 'src/libsyntax/ast_util.rs')
-rw-r--r--src/libsyntax/ast_util.rs14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/libsyntax/ast_util.rs b/src/libsyntax/ast_util.rs
index 2fe42af65ca..62c2e9af938 100644
--- a/src/libsyntax/ast_util.rs
+++ b/src/libsyntax/ast_util.rs
@@ -11,7 +11,7 @@
 use ast::*;
 use ast;
 use ast_util;
-use codemap::{span, dummy_sp};
+use codemap::{Span, dummy_sp};
 use opt_vec;
 use parse::token;
 use visit::{SimpleVisitor, SimpleVisitorVisitor, Visitor};
@@ -217,7 +217,7 @@ pub fn default_block(
     }
 }
 
-pub fn ident_to_path(s: span, identifier: ident) -> Path {
+pub fn ident_to_path(s: Span, identifier: ident) -> Path {
     ast::Path {
         span: s,
         global: false,
@@ -231,7 +231,7 @@ pub fn ident_to_path(s: span, identifier: ident) -> Path {
     }
 }
 
-pub fn ident_to_pat(id: NodeId, s: span, i: ident) -> @pat {
+pub fn ident_to_pat(id: NodeId, s: Span, i: ident) -> @pat {
     @ast::pat { id: id,
                 node: pat_ident(bind_infer, ident_to_path(s, i), None),
                 span: s }
@@ -426,7 +426,7 @@ impl IdVisitor {
 impl Visitor<()> for IdVisitor {
     fn visit_mod(&mut self,
                  module: &_mod,
-                 _: span,
+                 _: Span,
                  node_id: NodeId,
                  env: ()) {
         (self.visit_callback)(node_id);
@@ -551,7 +551,7 @@ impl Visitor<()> for IdVisitor {
                 function_kind: &visit::fn_kind,
                 function_declaration: &fn_decl,
                 block: &Block,
-                span: span,
+                span: Span,
                 node_id: NodeId,
                 env: ()) {
         if !self.pass_through_items {
@@ -691,7 +691,7 @@ struct EachViewItemData {
 }
 
 impl SimpleVisitor for EachViewItemData {
-    fn visit_mod(&mut self, _: &_mod, _: span, _: NodeId) {
+    fn visit_mod(&mut self, _: &_mod, _: Span, _: NodeId) {
         // XXX: Default method.
     }
     fn visit_view_item(&mut self, view_item: &view_item) {
@@ -737,7 +737,7 @@ impl SimpleVisitor for EachViewItemData {
                 _: &visit::fn_kind,
                 _: &fn_decl,
                 _: &Block,
-                _: span,
+                _: Span,
                 _: NodeId) {
         // XXX: Default method.
     }