Don't assemble bound impls if candidate's ambiguous
This commit is contained in:
parent
39fe05f58c
commit
5aab863ba2
@ -725,7 +725,7 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> {
|
||||
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));
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user