Skip to content

Commit ca74a85

Browse files
committed
---
yaml --- r: 173650 b: refs/heads/master c: 5aab863 h: refs/heads/master v: v3
1 parent bb74e9b commit ca74a85

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 39fe05f58c5d7d805580826ce202d9a801813cb2
2+
refs/heads/master: 5aab863ba2841fc55d0e34ebb50a07acecd50a80
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 210f0dcf007104240b2e286ed0b80cb4a61d7bae
55
refs/heads/try: 957472483d3a2f43c0e4f7c2056280a1022af93c

trunk/src/librustc/middle/traits/select.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -725,7 +725,7 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> {
725725
try!(self.assemble_candidates_from_impls(obligation, &mut candidates.vec));
726726

727727
// No explicit impls were declared for this type, consider the fallback rules.
728-
if candidates.vec.is_empty() {
728+
if candidates.vec.is_empty() && !candidates.ambiguous {
729729
try!(self.assemble_builtin_bound_candidates(bound, stack, &mut candidates));
730730
}
731731
}

0 commit comments

Comments
 (0)