refactor: parse & mod resolver for rustc-ap v650
This commit is contained in:
parent
bd5dff4012
commit
9b0ed57af6
19 changed files with 308 additions and 242 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue