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
359bfa901b9d8eddbed7b88b6716dbb77b7bfb95
rust/tests/ui/parser/macro/issue-33569.rs

11 lines
246 B
Rust
Raw Normal View History

Fix ICE on failure to parse token tree
2016-05-25 20:05:47 +00:00
macro_rules! foo {
{ $+ } => { //~ ERROR expected identifier, found `+`
Add `syntax::ext::tt::quoted::{TokenTree, ..}` and remove `tokenstream::TokenTree::Sequence`.
2017-01-29 08:38:44 +00:00
//~^ ERROR missing fragment specifier
Update tests since ? macro op is supported on 2015.
2019-05-18 08:24:56 +02:00
$(x)(y) //~ ERROR expected one of: `*`, `+`, or `?`
Fix ICE on failure to parse token tree
2016-05-25 20:05:47 +00:00
}
}
Add warning cycle.
2017-02-26 03:25:22 +00:00
mbe: Clean up code with non-optional `NonterminalKind` Since [1], the fragment specifier is unconditionally required in all editions. This means `NonTerminalKind` no longer needs to be optional, as we can reject this code during the expansion of `macro_rules!` rather than handling it throughout the code. Do this cleanup here. [1]: https://github.com/rust-lang/rust/pull/128425
2025-06-17 22:15:38 -04:00
foo!(); //~ ERROR unexpected end
expand: address review comments
2020-03-18 13:34:11 +01:00
fn main() {}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 3641ms Template: 4ms
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