diff options
| author | Caleb Cartwright <caleb.cartwright@outlook.com> | 2020-03-26 23:18:16 -0500 |
|---|---|---|
| committer | Caleb Cartwright <caleb.cartwright@outlook.com> | 2020-03-27 21:33:34 -0500 |
| commit | 9b0ed57af690bb46eb87de334c6cbef5bd27c174 (patch) | |
| tree | 121cb8dd7f93e7270770ee73894afb2e1a4c94b9 /src/patterns.rs | |
| parent | bd5dff4012a73ad4c5eb5db1dbb111bd92ed31dd (diff) | |
refactor: parse & mod resolver for rustc-ap v650
Diffstat (limited to 'src/patterns.rs')
| -rw-r--r-- | src/patterns.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/patterns.rs b/src/patterns.rs index 1ef3bd5337b..0c57f111761 100644 --- a/src/patterns.rs +++ b/src/patterns.rs @@ -40,7 +40,7 @@ fn is_short_pattern_inner(pat: &ast::Pat) -> bool { ast::PatKind::Rest | ast::PatKind::Wild | ast::PatKind::Lit(_) => true, ast::PatKind::Ident(_, _, ref pat) => pat.is_none(), ast::PatKind::Struct(..) - | ast::PatKind::Mac(..) + | ast::PatKind::MacCall(..) | ast::PatKind::Slice(..) | ast::PatKind::Path(..) | ast::PatKind::Range(..) => false, @@ -231,7 +231,7 @@ impl Rewrite for Pat { PatKind::Struct(ref path, ref fields, ellipsis) => { rewrite_struct_pat(path, fields, ellipsis, self.span, context, shape) } - PatKind::Mac(ref mac) => rewrite_macro(mac, None, context, shape, MacroPosition::Pat), + PatKind::MacCall(ref mac) => rewrite_macro(mac, None, context, shape, MacroPosition::Pat), PatKind::Paren(ref pat) => pat .rewrite(context, shape.offset_left(1)?.sub_width(1)?) .map(|inner_pat| format!("({})", inner_pat)), |
