-
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: Avoid emitting an unhelpful cascading resolution error #35145
Conversation
r+ with a |
@@ -1810,6 +1810,8 @@ impl<'a> Resolver<'a> { | |||
if let Def::Trait(_) = path_res.base_def { | |||
debug!("(resolving trait) found trait def: {:?}", path_res); | |||
Ok(path_res) | |||
} else if path_res.base_def == Def::Err { |
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.
nit: use a match, or at least if-let-chain.
r? @arielb1 |
@bors r+ |
📌 Commit 93fd214 has been approved by |
0bac06e
to
d6b10be
Compare
@bors r+ |
📌 Commit d6b10be has been approved by |
⌛ Testing commit d6b10be with merge 6316c0c... |
💔 Test failed - auto-win-gnu-32-opt-rustbuild |
actual failure
|
@bors r=arielb1 |
📌 Commit 6656a30 has been approved by |
resolve: Avoid emitting an unhelpful cascading resolution error Fixes #35142.
Fixes #35142.