Skip to content
This repository was archived by the owner on Nov 21, 2018. It is now read-only.

Commit fc953e1

Browse files
committed
rustup
1 parent e27293a commit fc953e1

File tree

1 file changed

+2
-2
lines changed
  • regex-macros.0.1.30/regex_macros/src

1 file changed

+2
-2
lines changed

regex-macros.0.1.30/regex_macros/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -589,7 +589,7 @@ fn exec<'t>(which: ::regex::native::MatchKind, input: &'t str,
589589
pats: vec!(P(ast::Pat{
590590
id: ast::DUMMY_NODE_ID,
591591
span: self.sp,
592-
node: ast::PatWild(ast::PatWildSingle),
592+
node: ast::PatWild,
593593
})),
594594
guard: None,
595595
body: body,
@@ -611,7 +611,7 @@ fn exec<'t>(which: ::regex::native::MatchKind, input: &'t str,
611611
/// Otherwise, logs an error with cx.span_err and returns None.
612612
fn parse(cx: &mut ExtCtxt, tts: &[ast::TokenTree]) -> Option<String> {
613613
let mut parser = cx.new_parser_from_tts(tts);
614-
let entry = cx.expander().fold_expr(parser.parse_expr());
614+
let entry = cx.expander().fold_expr(parser.parse_expr_panic());
615615
let regex = match entry.node {
616616
ast::ExprLit(ref lit) => {
617617
match lit.node {

0 commit comments

Comments
 (0)