-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
resolve: Recover from indeterminate macro resolutions more agressively #53587
Conversation
If we are in "forced resolution" mode and in-module resolution is indeterminate, don't give up and continue searching in outer scopes
(rust_highfive has picked a reviewer for you, use r? to override) |
@bors: r+ |
📌 Commit c9c79b7 has been approved by |
Nah, this is not a good solution, easy way to get compiling code with potentially inconsistent resolutions. |
The root issue here is that derive helper attributes like Ideally, forced resolution should be an error recovery measure and should never result in successful compilation, except for the I'll return to this until beta/stable, but for now it's blocked by some other work from #50911 (comment). |
Has consensus been reached on this resolution yet? I have been unable to upgrade Nightly past 2018-08-15 (build failures on dependencies). |
@norru In the meantime, I'd recommend to implement a workaround in |
Hi @petrochenkov, thanks for the extensive explanation. I am not willing/keen on using a patched version of https://github.com/sfackler/log4rs so I'll stick to the old Nightly. How long do you think is going to take, for the sake of my own planning? @sfackler FYI |
@petrochenkov Is this PR still blocked? |
This PR can be closed actually, |
I'm running into this issue with both |
@petrochenkov thank you for being so responsive. Everyone working with rocket and log4rs owes you one 🍺 |
If we are in "forced resolution" mode and in-module resolution is indeterminate, don't give up and continue searching in outer scopes.
Fixes #53481