diff options
| author | bors <bors@rust-lang.org> | 2014-02-13 16:32:01 -0800 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-02-13 16:32:01 -0800 |
| commit | 89b1686bd7db25b5dd948b1a4d9dfd0c68084c29 (patch) | |
| tree | cfde530d295ebf159fc538115565d5ce1409bea3 /src/libsyntax/ext/base.rs | |
| parent | 94d453e459107ed1c5d76f693686b29d31cdc58c (diff) | |
| parent | 5deb3c9ca06509ce261f69fd01426825e32d61c1 (diff) | |
| download | rust-89b1686bd7db25b5dd948b1a4d9dfd0c68084c29.tar.gz rust-89b1686bd7db25b5dd948b1a4d9dfd0c68084c29.zip | |
auto merge of #12017 : FlaPer87/rust/replace-mod-crate, r=alexcrichton
The first setp for #9880 is to add a new `crate` keyword. This PR does exactly that. I took a chance to refactor `parse_item_foreign_mod` and I broke it down into 2 separate methods to isolate each feature. The next step will be to push a new stage0 snapshot and then get rid of all `extern mod` around the code.
Diffstat (limited to 'src/libsyntax/ext/base.rs')
| -rw-r--r-- | src/libsyntax/ext/base.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/ext/base.rs b/src/libsyntax/ext/base.rs index 02c3a1b985b..7ac66ecaa37 100644 --- a/src/libsyntax/ext/base.rs +++ b/src/libsyntax/ext/base.rs @@ -264,7 +264,7 @@ pub struct MacroCrate { } pub trait CrateLoader { - fn load_crate(&mut self, crate: &ast::ViewItem) -> MacroCrate; + fn load_crate(&mut self, krate: &ast::ViewItem) -> MacroCrate; fn get_exported_macros(&mut self, crate_num: ast::CrateNum) -> ~[~str]; fn get_registrar_symbol(&mut self, crate_num: ast::CrateNum) -> Option<~str>; } |
