From 968633b60ad7f2fd0c5663e92b06f2c9d21964a8 Mon Sep 17 00:00:00 2001 From: Flavio Percoco Date: Wed, 5 Feb 2014 22:15:24 +0100 Subject: 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. --- src/libsyntax/print/pprust.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/libsyntax/print') 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(()) -- cgit 1.4.1-3-g733a5