This website requires JavaScript.
Explore
Help
Register
Sign In
mikros
/
rust
Watch
1
Star
0
Fork
0
You've already forked rust
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
40e3fcfd59
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-17 23:01:36 -05:00
macro_rules
!
failed
{
(
)
=
>
{
{
let
x
=
5
"
"
;
//~ ERROR found `""`
Consume trailing doc comments to avoid parse errors
2017-11-24 09:34:24 -06: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-17 23:01:36 -05:00
}
fn
main
(
)
{
failed!
(
)
;
}
Reference in New Issue
Copy Permalink