Skip to content

Commit 0be5eac

Browse files
committed
fix nightly breakage in syntax::ast
1 parent aae73b0 commit 0be5eac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

regex_macros/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -541,9 +541,9 @@ fn parse(cx: &mut ExtCtxt, tts: &[ast::TokenTree]) -> Option<String> {
541541
if let Ok(expr) = parser.parse_expr() {
542542
let entry = cx.expander().fold_expr(expr);
543543
let regex = match entry.node {
544-
ast::ExprLit(ref lit) => {
544+
ast::ExprKind::Lit(ref lit) => {
545545
match lit.node {
546-
ast::LitStr(ref s, _) => s.to_string(),
546+
ast::LitKind::Str(ref s, _) => s.to_string(),
547547
_ => {
548548
cx.span_err(entry.span, &format!(
549549
"expected string literal but got `{}`",

0 commit comments

Comments
 (0)