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
c9a3b022818fb61b7af1e2bcdb6b707ea9f6df6f
rust/tests/ui/macros/feature-gate-expr_fragment_specifier_2024.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
198 B
Rust
Raw Normal View History

Add expr_2021 nonterminal and feature flag This commit adds a new nonterminal `expr_2021` in macro patterns, and `expr_fragment_specifier_2024` feature flag. For now, `expr` and `expr_2021` are treated the same, but in future PRs we will update `expr` to match to new grammar. Co-authored-by: Vincezo Palazzo <vincenzopalazzodev@gmail.com>
2024-04-12 10:19:23 -07:00
//@ compile-flags: --edition=2024 -Z unstable-options
macro_rules! m {
Apply code review suggestions - use feature_err to report unstable expr_2021 - Update downlevel expr_2021 diagnostics Co-authored-by: León Orell Valerian Liehr <me@fmease.dev>
2024-04-30 16:32:26 -07:00
($e:expr_2021) => { //~ ERROR: fragment specifier `expr_2021` is unstable
Add expr_2021 nonterminal and feature flag This commit adds a new nonterminal `expr_2021` in macro patterns, and `expr_fragment_specifier_2024` feature flag. For now, `expr` and `expr_2021` are treated the same, but in future PRs we will update `expr` to match to new grammar. Co-authored-by: Vincezo Palazzo <vincenzopalazzodev@gmail.com>
2024-04-12 10:19:23 -07:00
$e
};
}
fn main() {
m!(());
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 230ms 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