This website requires JavaScript.
Explore
Help
Sign In
nordic-dev.net
/
rust
Watch
2
Star
0
Fork
0
You've already forked rust
mirror of
https://github.com/rust-lang/rust.git
synced
2025-05-11 09:27:56 +00:00
Code
Issues
Packages
Projects
Releases
Wiki
Activity
2a8af4f7c8
rust
/
tests
/
ui
/
parser
/
macro
/
issue-37234.rs
10 lines
117 B
Rust
Raw
Normal View
History
Unescape
Escape
Don't spin expanding stmt macros. If we can't make progress when parsing a macro expansion as a statement then we should just bail. This alleviates the symptoms shown in e.g. #37113 but it doesn't fix the problem that parsing invalid enum bodies (and others) leaves the parser in a crappy state.
2016-10-18 04:01:36 +00:00
macro_rules
!
failed
{
(
)
=
>
{
{
let
x
=
5
"
"
;
//~ ERROR found `""`
Consume trailing doc comments to avoid parse errors
2017-11-24 15:34:24 +00:00
}
}
Don't spin expanding stmt macros. If we can't make progress when parsing a macro expansion as a statement then we should just bail. This alleviates the symptoms shown in e.g. #37113 but it doesn't fix the problem that parsing invalid enum bodies (and others) leaves the parser in a crappy state.
2016-10-18 04:01:36 +00:00
}
fn
main
(
)
{
failed!
(
)
;
}
Reference in New Issue
Copy Permalink