Skip to content

Replace #[macro_use] with explicit imports #11449

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jun 27, 2025
Merged

Conversation

Turbo87
Copy link
Member

@Turbo87 Turbo87 commented Jun 27, 2025

The #[macro_use] attribute was the original way to import macros, but is no longer necessary. Some editors and development tools don't work well with #[macro_use] attributes and introduce explicit imports regardless.

This change removes all #[macro_use] declarations for claims, diesel, serde, and tracing crates, replacing them with explicit imports throughout the codebase.

@Turbo87 Turbo87 added C-internal 🔧 Category: Nonessential work that would make the codebase more consistent or clear A-backend ⚙️ labels Jun 27, 2025
@Turbo87 Turbo87 merged commit dbf9efb into rust-lang:main Jun 27, 2025
10 checks passed
@Turbo87 Turbo87 deleted the macro-use branch June 27, 2025 07:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-backend ⚙️ C-internal 🔧 Category: Nonessential work that would make the codebase more consistent or clear
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant