-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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: Continue search in outer scopes after applying derive resolution fallback #53516
Conversation
r? @estebank (rust_highfive has picked a reviewer for you, use r? to override) |
self.hygienic_lexical_parent_with_compatibility_fallback(module, &mut ident.span, | ||
node_id) | ||
node_id, &mut poisoned) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I find mutable arguments to be a bit stylistically unappealing, in Rust in particular. You could do something like the following:
if let ... {
let (module, poisoned_opt) = self.hygienic_lexical_parent_with_compatibility_fallback(...);
poisoned = poisoned_opt;
module
} else {
although I'm not seeing it as much of an improvement...
@bors r+ |
📌 Commit 7e8825b has been approved by |
resolve: Continue search in outer scopes after applying derive resolution fallback Fixes #53263
☀️ Test successful - status-appveyor, status-travis |
Accepting for beta backport: regression fix. cc @rust-lang/compiler |
[beta] Rollup backports Merged and approved: * #53559: add macro check for lint * #53509: resolve: Reject some inaccessible candidates sooner during import resolution * #53239: rustc_codegen_llvm: Restore the closure env alloca hack for LLVM 5. * #53235: Feature gate where clauses on associated type impls * #53516: resolve: Continue search in outer scopes after applying derive resolution fallback r? @ghost
Fixes #53263