-
Notifications
You must be signed in to change notification settings - Fork 741
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
Cannot build with tracing 0.1.39, when the crate name is core
#2761
Comments
Ugh, that's quite unfortunate --- sorry this caused problems for you! Ideally, I think we could fix this by re-exporting all the prelude macros that the cc @kaffarell, do you think an approach like that would work? |
Yes, I think that should work. Exported |
When a user has a crate named `core`, it can cause issues because our crates import from `::core::*`. Now we are importing from `$crate::__macro_support::*` and there will be no more name clashes. Fixes: tokio-rs#2761
This ensures that the tracing lib correctly builds when a crate is named `core`. See tokio-rs#2761 and tokio-rs#2762 for more info.
Bug Report
Version
Platform
Darwin mac.local 22.6.0 Darwin Kernel Version 22.6.0: Wed Jul 5 22:22:52 PDT 2023; root:xnu-8796.141.3~6/RELEASE_ARM64_T8103 arm64
Crates
Description
#2757 This PR introduces an issue where if the user's crate name is
core
, it will lead to a build error.It typically occurs in projects that do not need to publish their crate to crates.io. See sxyazi/yazi#270 for more details.
The text was updated successfully, but these errors were encountered: