-
Notifications
You must be signed in to change notification settings - Fork 749
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
macros fail when format_args
is defined in scope
#2721
Comments
kaffarell
added a commit
to kaffarell/tracing
that referenced
this issue
Oct 13, 2023
When a custom macro "format_args" is defined, macros such as `tracing::warn`, `tracing::debug`, etc. will fail. Adding the full path `::core::format_args!` to the calls fixes this. Fixes: tokio-rs#2721
kaffarell
added a commit
to kaffarell/tracing
that referenced
this issue
Oct 13, 2023
When a custom macro "format_args" is defined, macros such as `tracing::warn`, `tracing::debug`, etc. will fail. Adding the full path `::core::format_args!` to the calls fixes this. Fixes: tokio-rs#2721
kaffarell
added a commit
to kaffarell/tracing
that referenced
this issue
Oct 13, 2023
When a custom macro "format_args" is defined, macros such as `tracing::warn`, `tracing::debug`, etc. will fail. Adding the full path `::core::format_args!` to the calls fixes this. Fixes: tokio-rs#2721
hawkw
pushed a commit
that referenced
this issue
Oct 13, 2023
When a custom macro "format_args" is defined, macros such as `tracing::warn`, `tracing::debug`, etc. will fail. Adding the full path `::core::format_args!` to the calls fixes this. Fixes: #2721
hawkw
pushed a commit
that referenced
this issue
Oct 13, 2023
When a custom macro "format_args" is defined, macros such as `tracing::warn`, `tracing::debug`, etc. will fail. Adding the full path `::core::format_args!` to the calls fixes this. Fixes: #2721
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug Report
Playground example
We have a custom
format_args
macro in scope. This causes e.g.warn!
to fail:This is caused by
format_args!
being used in tracing'smacros.rs
without a qualification to std.Version
tracing 0.1.37
Platform
n/a
The text was updated successfully, but these errors were encountered: