We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ffeb415 + 32a1041 commit 371ef65Copy full SHA for 371ef65
regex_macros/src/lib.rs
@@ -452,7 +452,7 @@ fn exec<'t>(
452
fn match_class(&self, ranges: &[(char, char)]) -> P<ast::Expr> {
453
let mut arms = ranges.iter().map(|&(start, end)| {
454
let pat = self.cx.pat(
455
- self.sp, ast::PatRange(
+ self.sp, ast::PatKind::Range(
456
quote_expr!(self.cx, $start), quote_expr!(self.cx, $end)));
457
self.cx.arm(self.sp, vec!(pat), quote_expr!(self.cx, true))
458
}).collect::<Vec<ast::Arm>>();
@@ -513,7 +513,7 @@ fn exec<'t>(
513
pats: vec!(P(ast::Pat{
514
id: ast::DUMMY_NODE_ID,
515
span: self.sp,
516
- node: ast::PatWild,
+ node: ast::PatKind::Wild,
517
})),
518
guard: None,
519
body: body,
0 commit comments