-
Notifications
You must be signed in to change notification settings - Fork 13k
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
regression: error[E0658]: use of unstable library feature proc_macro_totokens
#134707
Comments
This was introduced by #131441. I'm not sure if it's avoidable in general given this pattern of glob imports, seems like the code was just waiting to have a glob import ambiguity :'( |
Also related: https://crater-reports.s3.amazonaws.com/beta-1.84.0-4-retry2/beta-2024-12-08/reg/chime-flux-proc-macro-0.3.0/log.txt
|
Seems like we may need to just accept that this can break code that was using glob imports in this fashion (I think this is glob-vs-glob?), unless we manage to never add things to proc_macros, which is also undesirable... I suppose we could notify the crates that broke? Not sure what else can be done, outside of better advertisement/awareness-raising about breakages that can happen from glob-vs-glob imports between multiple imported crates? |
Yeah, but that's probably a call that's best left for T-libs-api since they could presumably opt to mitigate this breakage some other way (like renaming the trait to have fewer conflicts or something, though I don't personally think that needs to get done) |
We discussed this in the libs-api meeting today. While these crates have been updated somewhat recently, we don't think they are sufficiently widely used to justify specific workarounds in the compiler/library. As several people have said, the use of glob imports here just makes the code very brittle to future library changes. |
Maybe Clippy could duplicate In theory we could probably also allow |
Two logs failed to compile
sqlx-models-proc-macro
:So it appears to be globbing the unstable
proc_macro::ToTokens
before the desiredquote::ToTokens
.Version it worked on
It most recently worked on: 1.83.0
Version with regression
Using rustc 1.84.0-beta.4 in crater #134138.
@rustbot modify labels: +regression-from-stable-to-beta -regression-untriaged
The text was updated successfully, but these errors were encountered: