Skip to content

refactor(macros): improve diagnostics, hygiene, and safety across pro…#23017

Open
DerrickRichard wants to merge 2 commits intoruffle-rs:masterfrom
DerrickRichard:patch-1
Open

refactor(macros): improve diagnostics, hygiene, and safety across pro…#23017
DerrickRichard wants to merge 2 commits intoruffle-rs:masterfrom
DerrickRichard:patch-1

Conversation

@DerrickRichard
Copy link

…c-macro crate

  • Replaced panic/assert usage with proper syn::Error diagnostics
  • Added helper functions for cleaner structure and reduced duplication
  • Improved macro hygiene using mixed_site spans and internal name prefixes
  • Strengthened #[no_dynamic] override-prevention logic
  • Added identifier validation to atom!/istr! macros
  • Introduced feature flags for modular compilation

…c-macro crate

- Replaced panic/assert usage with proper syn::Error diagnostics
- Added helper functions for cleaner structure and reduced duplication
- Improved macro hygiene using mixed_site spans and internal name prefixes
- Strengthened #[no_dynamic] override-prevention logic
- Added identifier validation to atom!/istr! macros
- Introduced feature flags for modular compilation
@kjarosh kjarosh added T-refactor Type: Refactor / Cleanup waiting-on-author Waiting on the PR author to make the requested changes A-core Area: Core player, where no other category fits labels Feb 12, 2026
@kjarosh
Copy link
Member

kjarosh commented Feb 15, 2026

Hi, thanks for your contribution! Just FYI: the code does not compile.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-core Area: Core player, where no other category fits T-refactor Type: Refactor / Cleanup waiting-on-author Waiting on the PR author to make the requested changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants