diff options
| author | Brian Anderson <banderson@mozilla.com> | 2012-09-07 18:08:21 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-09-10 19:04:26 -0700 |
| commit | 298eb8c7260fe321e30d9c5e22f4ecefc82c4f64 (patch) | |
| tree | ddd18bdc6c940595bd1df41cfa5d414ffa862a5d /src/libsyntax/ext | |
| parent | 1a8a0a77b14c44d98501cd9fb0f14ed88d4c38d9 (diff) | |
| download | rust-298eb8c7260fe321e30d9c5e22f4ecefc82c4f64.tar.gz rust-298eb8c7260fe321e30d9c5e22f4ecefc82c4f64.zip | |
Convert 'import' to 'use'. Remove 'import' keyword.
Diffstat (limited to 'src/libsyntax/ext')
| -rw-r--r-- | src/libsyntax/ext/auto_serialize.rs | 6 | ||||
| -rw-r--r-- | src/libsyntax/ext/base.rs | 6 | ||||
| -rw-r--r-- | src/libsyntax/ext/pipes/ast_builder.rs | 6 | ||||
| -rw-r--r-- | src/libsyntax/ext/pipes/pipec.rs | 8 |
4 files changed, 10 insertions, 16 deletions
diff --git a/src/libsyntax/ext/auto_serialize.rs b/src/libsyntax/ext/auto_serialize.rs index 1bb207adfc2..6a31dac2e8f 100644 --- a/src/libsyntax/ext/auto_serialize.rs +++ b/src/libsyntax/ext/auto_serialize.rs @@ -78,10 +78,8 @@ export expand; // Transitional reexports so qquote can find the paths it is looking for mod syntax { - import ext; - export ext; - import parse; - export parse; + pub use ext; + pub use parse; } type ser_tps_map = map::HashMap<ast::ident, fn@(@ast::expr) -> ~[@ast::stmt]>; diff --git a/src/libsyntax/ext/base.rs b/src/libsyntax/ext/base.rs index 6de6be82ae2..7894a8d05d3 100644 --- a/src/libsyntax/ext/base.rs +++ b/src/libsyntax/ext/base.rs @@ -299,9 +299,9 @@ fn get_mac_body(cx: ext_ctxt, sp: span, args: ast::mac_body) // using new syntax. This will be obsolete when #old_macros go away. fn tt_args_to_original_flavor(cx: ext_ctxt, sp: span, arg: ~[ast::token_tree]) -> ast::mac_arg { - import ast::{matcher, matcher_, match_tok, match_seq, match_nonterminal}; - import parse::lexer::{new_tt_reader, reader}; - import tt::macro_parser::{parse_or_else, matched_seq, + use ast::{matcher, matcher_, match_tok, match_seq, match_nonterminal}; + use parse::lexer::{new_tt_reader, reader}; + use tt::macro_parser::{parse_or_else, matched_seq, matched_nonterminal}; // these spans won't matter, anyways diff --git a/src/libsyntax/ext/pipes/ast_builder.rs b/src/libsyntax/ext/pipes/ast_builder.rs index 9edf97daaee..a4512b7b098 100644 --- a/src/libsyntax/ext/pipes/ast_builder.rs +++ b/src/libsyntax/ext/pipes/ast_builder.rs @@ -10,10 +10,8 @@ use ext::base::mk_ctxt; // Transitional reexports so qquote can find the paths it is looking for mod syntax { - import ext; - export ext; - import parse; - export parse; + pub use ext; + pub use parse; } fn path(ids: ~[ident], span: span) -> @ast::path { diff --git a/src/libsyntax/ext/pipes/pipec.rs b/src/libsyntax/ext/pipes/pipec.rs index 123628a28a2..600c30f1f8b 100644 --- a/src/libsyntax/ext/pipes/pipec.rs +++ b/src/libsyntax/ext/pipes/pipec.rs @@ -16,10 +16,8 @@ use ast_builder::{append_types, path, empty_span}; // Transitional reexports so qquote can find the paths it is looking for mod syntax { - import ext; - export ext; - import parse; - export parse; + pub use ext; + pub use parse; } trait gen_send { @@ -321,7 +319,7 @@ impl protocol: gen_init { }; cx.parse_item(fmt!("fn init%s() -> (client::%s, server::%s)\ - { import pipes::HasBuffer; %s }", + { use pipes::HasBuffer; %s }", start_state.ty_params.to_source(cx), start_state.to_ty(cx).to_source(cx), start_state.to_ty(cx).to_source(cx), |
