Uh oh!
There was an error while loading. Please reload this page.
resolve: Continue search in outer scopes after applying derive resolution fallback - #53516
Merged
Conversation
rust-highfive
commented
Aug 20, 2018
Contributor
r? @estebank (rust_highfive has picked a reviewer for you, use r? to override) |
| let opt_module = if let Some(node_id) = record_used_id { | ||
| self.hygienic_lexical_parent_with_compatibility_fallback(module, &mut ident.span, | ||
| node_id) | ||
| node_id, &mut poisoned) |
Contributor
There was a problem hiding this comment.
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...
estebank
commented
Aug 20, 2018
Contributor
@bors r+ |
bors
commented
Aug 20, 2018
Collaborator
📌 Commit 7e8825b has been approved by |
bors
commented
Aug 22, 2018
Collaborator
bors added a commit
that referenced
this pull request
Aug 22, 2018
resolve: Continue search in outer scopes after applying derive resolution fallback Fixes#53263
bors
commented
Aug 22, 2018
Collaborator
☀️ Test successful - status-appveyor, status-travis |
nikomatsakis
commented
Aug 25, 2018
Contributor
Accepting for beta backport: regression fix. cc @rust-lang/compiler |
bors added a commit
that referenced
this pull request
Aug 25, 2018
[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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes#53263