Skip to content
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

Qualify all references in macros to avoid name clashes #729

Merged
merged 1 commit into from
Feb 26, 2025

Conversation

aschey
Copy link
Contributor

@aschey aschey commented Feb 25, 2025

This change replaces all unqualified references in macros with a qualified reference from _macro_support to avoid name clashes. I ran into the same issue as this tokio-rs/tracing#3023 with the line! macro.

I went ahead and used a qualified path for any references to core and std out of an abundance of caution since some people do have crates named core (tokio-rs/tracing#2761).

@max-sixty
Copy link
Collaborator

Many thanks @aschey !

@max-sixty max-sixty merged commit e6469ac into mitsuhiko:master Feb 26, 2025
15 checks passed
@aschey aschey deleted the fix/macro-qualify branch February 26, 2025 23:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants