Logo
Explore Help
Register Sign In
rust-lang/rust
1
0
Fork 0
You've already forked rust
Code Issues Pull Requests Actions 1 Packages Projects Releases Wiki Activity
Files
e0e7a432db38ac26355e7c60219c27720b9ec42f
rust/tests/ui/infinite/infinite-macro-expansion.rs

8 lines
147 B
Rust
Raw Normal View History

Modernize macro_rules! invocations macro_rules! is like an item that defines a macro. Other items don't have a trailing semicolon, or use a paren-delimited body. If there's an argument for matching the invocation syntax, e.g. parentheses for an expr macro, then I think that applies more strongly to the *inner* delimiters on the LHS, wrapping the individual argument patterns.
2015-01-02 14:44:21 -08:00
macro_rules! recursive {
rustc_span: move pretty syntax from macro_backtrace to ExpnKind::descr.
2020-01-21 01:02:01 +02:00
() => (recursive!()) //~ ERROR recursion limit reached while expanding `recursive!`
Modernize macro_rules! invocations macro_rules! is like an item that defines a macro. Other items don't have a trailing semicolon, or use a paren-delimited body. If there's an argument for matching the invocation syntax, e.g. parentheses for an expr macro, then I think that applies more strongly to the *inner* delimiters on the LHS, wrapping the individual argument patterns.
2015-01-02 14:44:21 -08:00
}
Limit recursion depth for macro expansions, closes #17628
2014-10-01 11:38:54 +02:00
fn main() {
recursive!()
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 3798ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API