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.
1 parent aae73b0 commit 0be5eacCopy full SHA for 0be5eac
regex_macros/src/lib.rs
@@ -541,9 +541,9 @@ fn parse(cx: &mut ExtCtxt, tts: &[ast::TokenTree]) -> Option<String> {
541
if let Ok(expr) = parser.parse_expr() {
542
let entry = cx.expander().fold_expr(expr);
543
let regex = match entry.node {
544
- ast::ExprLit(ref lit) => {
+ ast::ExprKind::Lit(ref lit) => {
545
match lit.node {
546
- ast::LitStr(ref s, _) => s.to_string(),
+ ast::LitKind::Str(ref s, _) => s.to_string(),
547
_ => {
548
cx.span_err(entry.span, &format!(
549
"expected string literal but got `{}`",
0 commit comments