Don't assemble bound impls if candidate's ambiguous
This commit is contained in:
parent
39fe05f58c
commit
5aab863ba2
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue