-
Notifications
You must be signed in to change notification settings - Fork 13k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix #35829 (quote!()
does not handle br#"…"#
)
#41961
Conversation
r? @pnkfelix (rust_highfive has picked a reviewer for you, use r? to override) |
quote!()
does not handle b"…")quote!()
does not handle b"…")
|
Turns out I've added the test to the wrong file 😂. Will fix proc_macro as well. @petrochenkov |
…le b"…") * Handles `b"…"`, `br#"…"#` and `...` for `quote_expr!()`. * Refactored the match statement to allow it to complain loudly on any unhandled token. * Similarly, proc_macro's `quote!()` did not handle `br#"…"#` or `r#"…"#`, so this commit fixes it too.
quote!()
does not handle b"…")quote!()
does not handle br#"…"#
)
proc_macro also fixed; Travis passed @petrochenkov |
ping @petrochenkov for review |
@bors r+ |
📌 Commit 115854e has been approved by |
Fix #35829 (`quote!()` does not handle `br#"…"#`) Fix issue #35829 (syntax extension's `quote_expr!()` does not handle `b"…"` and proc_macro's `quote!()` does not handle `r#"…"#`) * Handles `b"…"`, `br#"…"#` and `...` for `quote_expr!()`. * Refactored the match statement to allow it to complain loudly on any unhandled token. * Similarly, proc_macro's `quote!()` did not handle `br#"…"#` or `r#"…"#`, so this PR fixes it too.
☀️ Test successful - status-appveyor, status-travis |
Fix issue #35829 (syntax extension's
quote_expr!()
does not handleb"…"
and proc_macro'squote!()
does not handler#"…"#
)b"…"
,br#"…"#
and...
forquote_expr!()
.quote!()
did not handlebr#"…"#
orr#"…"#
, so this PR fixes it too.