diff options
| author | Michael Woerister <michaelwoerister@gmail> | 2013-07-27 10:25:59 +0200 |
|---|---|---|
| committer | Michael Woerister <michaelwoerister@gmail> | 2013-07-29 16:16:48 +0200 |
| commit | 8a329770b6d0bc526e5873c143a5db1b551d42c1 (patch) | |
| tree | 8536d97806e765d2483cd5cf30ed9c506a13f1b5 /src/libsyntax/print | |
| parent | 27812ea5e025ed36dc80379b86bb249b33c528a2 (diff) | |
New naming convention for ast::{node_id, local_crate, crate_node_id, blk_check_mode, ty_field, ty_method}
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 8e2c24cacfe..7083d6655f1 100644 --- a/src/libsyntax/print/pprust.rs +++ b/src/libsyntax/print/pprust.rs @@ -807,7 +807,7 @@ pub fn print_variant(s: @ps, v: &ast::variant) { } } -pub fn print_ty_method(s: @ps, m: &ast::ty_method) { +pub fn print_ty_method(s: @ps, m: &ast::TypeMethod) { hardbreak_if_not_bol(s); maybe_print_comment(s, m.span.lo); print_outer_attributes(s, m.attrs); @@ -948,8 +948,8 @@ pub fn print_possibly_embedded_block_(s: @ps, attrs: &[ast::Attribute], close_box: bool) { match blk.rules { - ast::unsafe_blk => word_space(s, "unsafe"), - ast::default_blk => () + ast::UnsafeBlock => word_space(s, "unsafe"), + ast::DefaultBlock => () } maybe_print_comment(s, blk.span.lo); let ann_node = node_block(s, blk); @@ -1272,7 +1272,7 @@ pub fn print_expr(s: @ps, expr: &ast::expr) { // in the case of foo => expr if arm.body.view_items.is_empty() && arm.body.stmts.is_empty() && - arm.body.rules == ast::default_blk && + arm.body.rules == ast::DefaultBlock && arm.body.expr.is_some() { match arm.body.expr { |
