diff options
| author | Matthias Krüger <476013+matthiaskrgr@users.noreply.github.com> | 2025-03-19 16:52:58 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-19 16:52:58 +0100 |
| commit | 966021d00a191191296814df2acd7becc7d59ad8 (patch) | |
| tree | 5a5f483f24979ad5512550d6cc2368e15283879a /compiler/rustc_llvm/llvm-wrapper | |
| parent | 9ab2a0e353f44eaa1df4246006dbc693f8e24899 (diff) | |
| parent | 6c865c1e14d5bd76b4ffe1e7ed2e60b3261d03a9 (diff) | |
| download | rust-966021d00a191191296814df2acd7becc7d59ad8.tar.gz rust-966021d00a191191296814df2acd7becc7d59ad8.zip | |
Rollup merge of #138613 - m-ou-se:no-more-e0773, r=jdonszelmann,petrochenkov
Remove E0773 "A builtin-macro was defined more than once."
Error E0773 "A builtin-macro was defined more than once" is triggered when using the same `#[rustc_builtin_macro(..)]` twice. However, it can only be triggered in unstable code (using a `rustc_` attribute), and there doesn't seem to be any harm in using the same implementation from `compiler/rustc_builtin_macros/…` for multiple macro definitions.
By changing the Box to an Arc in `SyntaxExtensionKind`, we can throw away the `BuiltinMacroState::{NotYetSeen, AlreadySeen}` logic, simplifying things.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper')
0 files changed, 0 insertions, 0 deletions
