about summary refs log tree commit diff
path: root/tests/ui/macros/macro-missing-fragment.rs
AgeCommit message (Collapse)AuthorLines
2025-06-24mbe: Clean up code with non-optional `NonterminalKind`Trevor Gross-1/+0
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-12Make `missing_fragment_specifier` an unconditional errorTrevor Gross-19/+5
This was attempted in [1] then reverted in [2] because of fallout. Recently, this was made an edition-dependent error in [3]. Make missing fragment specifiers an unconditional error again. [1]: https://github.com/rust-lang/rust/pull/75516 [2]: https://github.com/rust-lang/rust/pull/80210 [3]: https://github.com/rust-lang/rust/pull/128006
2024-11-28Update more 2024 tests to remove -Zunstable-optionsEric Huss-1/+0
2024-07-27Make `missing_fragment_specifier` an error in edition 2024Trevor Gross-7/+16
`missing_fragment_specifier` has been a future compatibility warning since 2017. Uplifting it to an unconditional hard error was attempted in 2020, but eventually reverted due to fallout. Make it an error only in edition >= 2024, leaving the lint for older editions. This change will make it easier to support more macro syntax that relies on usage of `$`. Fixes <https://github.com/rust-lang/rust/issues/40107>
2023-01-11Move /src/test to /testsAlbert Larsan-0/+26