mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-08 09:38:26 +03:00
Don't assemble bound impls if candidate's ambiguous
This commit is contained in:
@@ -725,7 +725,7 @@ fn assemble_candidates<'o>(&mut self,
|
||||
try!(self.assemble_candidates_from_impls(obligation, &mut candidates.vec));
|
||||
|
||||
// No explicit impls were declared for this type, consider the fallback rules.
|
||||
if candidates.vec.is_empty() {
|
||||
if candidates.vec.is_empty() && !candidates.ambiguous {
|
||||
try!(self.assemble_builtin_bound_candidates(bound, stack, &mut candidates));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user