hir::ExprKind::Loop(..) => {
println!("{}Loop", ind);
},
+ hir::ExprKind::If(ref cond, _, ref else_opt) => {
+ println!("{}If", ind);
+ println!("{}condition:", ind);
+ print_expr(cx, cond, indent + 1);
+ if let Some(ref els) = *else_opt {
+ println!("{}else:", ind);
+ print_expr(cx, els, indent + 1);
+ }
+ },
hir::ExprKind::Match(ref cond, _, ref source) => {
println!("{}Match", ind);
println!("{}condition:", ind);
hir::ItemKind::TraitAlias(..) => {
println!("trait alias");
},
- hir::ItemKind::Impl {
+ hir::ItemKind::Impl(hir::Impl {
of_trait: Some(ref _trait_ref),
..
- } => {
+ }) => {
println!("trait impl");
},
- hir::ItemKind::Impl { of_trait: None, .. } => {
+ hir::ItemKind::Impl(hir::Impl { of_trait: None, .. }) => {
println!("impl");
},
}