diff options
| author | Flavio Percoco <flaper87@gmail.com> | 2014-02-05 22:15:24 +0100 |
|---|---|---|
| committer | Flavio Percoco <flaper87@gmail.com> | 2014-02-13 20:52:07 +0100 |
| commit | 968633b60ad7f2fd0c5663e92b06f2c9d21964a8 (patch) | |
| tree | b7b73ec0a39fc0c104ea95ea3f37cd4a0c0e398c /src/libsyntax/print | |
| parent | cfb87f10ec7d41d0e7f8c68fbb908fc195517d41 (diff) | |
| download | rust-968633b60ad7f2fd0c5663e92b06f2c9d21964a8.tar.gz rust-968633b60ad7f2fd0c5663e92b06f2c9d21964a8.zip | |
Replace `crate` usage with `krate`
This patch replaces all `crate` usage with `krate` before introducing the new keyword. This ensures that after introducing the keyword, there won't be any compilation errors. krate might not be the most expressive substitution for crate but it's a very close abbreviation for it. `module` was already used in several places already.
Diffstat (limited to 'src/libsyntax/print')
| -rw-r--r-- | src/libsyntax/print/pprust.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libsyntax/print/pprust.rs b/src/libsyntax/print/pprust.rs index 7f7f57b13a9..24aa30cb36b 100644 --- a/src/libsyntax/print/pprust.rs +++ b/src/libsyntax/print/pprust.rs @@ -116,7 +116,7 @@ pub static default_columns: uint = 78u; pub fn print_crate(cm: @CodeMap, intr: @IdentInterner, span_diagnostic: @diagnostic::SpanHandler, - crate: &ast::Crate, + krate: &ast::Crate, filename: ~str, input: &mut io::Reader, out: ~io::Writer, @@ -147,11 +147,11 @@ pub fn print_crate(cm: @CodeMap, boxes: RefCell::new(~[]), ann: ann }; - print_crate_(&mut s, crate) + print_crate_(&mut s, krate) } -pub fn print_crate_(s: &mut State, crate: &ast::Crate) -> io::IoResult<()> { - if_ok!(print_mod(s, &crate.module, crate.attrs)); +pub fn print_crate_(s: &mut State, krate: &ast::Crate) -> io::IoResult<()> { + if_ok!(print_mod(s, &krate.module, krate.attrs)); if_ok!(print_remaining_comments(s)); if_ok!(eof(&mut s.s)); Ok(()) |
