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/rustdoc/astsrv.rs | |
| parent | 1a8a0a77b14c44d98501cd9fb0f14ed88d4c38d9 (diff) | |
| download | rust-298eb8c7260fe321e30d9c5e22f4ecefc82c4f64.tar.gz rust-298eb8c7260fe321e30d9c5e22f4ecefc82c4f64.zip | |
Convert 'import' to 'use'. Remove 'import' keyword.
Diffstat (limited to 'src/rustdoc/astsrv.rs')
| -rw-r--r-- | src/rustdoc/astsrv.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rustdoc/astsrv.rs b/src/rustdoc/astsrv.rs index 9f32e8f4c61..cda89e3b083 100644 --- a/src/rustdoc/astsrv.rs +++ b/src/rustdoc/astsrv.rs @@ -104,7 +104,7 @@ fn exec<T:Send>( fn build_ctxt(sess: session, ast: @ast::crate) -> ctxt { - import rustc::front::config; + use rustc::front::config; let ast = config::strip_unconfigured_items(ast); let ast = syntax::ext::expand::expand_crate(sess.parse_sess, @@ -201,7 +201,7 @@ fn srv_should_build_ast_map() { #[test] fn should_ignore_external_import_paths_that_dont_exist() { - let source = ~"use forble; import forble::bippy;"; + let source = ~"use forble; use forble::bippy;"; from_str(source, |_srv| { } ) } |
