refactor: parse & mod resolver for rustc-ap v650

This commit is contained in:
Caleb Cartwright 2020-03-26 23:18:16 -05:00
parent bd5dff4012
commit 9b0ed57af6
19 changed files with 308 additions and 242 deletions

View file

@ -403,7 +403,7 @@ impl Chain {
fn convert_try(expr: &ast::Expr, context: &RewriteContext<'_>) -> ast::Expr {
match expr.kind {
ast::ExprKind::Mac(ref mac) if context.config.use_try_shorthand() => {
ast::ExprKind::MacCall(ref mac) if context.config.use_try_shorthand() => {
if let Some(subexpr) = convert_try_mac(mac, context) {
subexpr
} else {