diff options
| author | Flavio Percoco <flaper87@gmail.com> | 2015-01-24 15:08:01 +0100 |
|---|---|---|
| committer | Flavio Percoco <flaper87@gmail.com> | 2015-02-22 02:14:24 +0100 |
| commit | 839a9de8d385a082b571a88ff5a7f0c620afed1c (patch) | |
| tree | 34d82e957e7ae2ad24b773bf68f3f2d340c960b6 | |
| parent | a962d47ef8a93ad125571a5628a883d0b50a97e7 (diff) | |
| download | rust-839a9de8d385a082b571a88ff5a7f0c620afed1c.tar.gz rust-839a9de8d385a082b571a88ff5a7f0c620afed1c.zip | |
Prefer other implementations over default ones
| -rw-r--r-- | src/librustc/middle/traits/select.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/librustc/middle/traits/select.rs b/src/librustc/middle/traits/select.rs index 15a1e3ad34b..b670c9cb1e1 100644 --- a/src/librustc/middle/traits/select.rs +++ b/src/librustc/middle/traits/select.rs @@ -1273,6 +1273,10 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> { // #18453. true } + (&DefaultTraitCandidate(_), _) => { + // Prefer other candidates over default implementations. + true + } (&ProjectionCandidate, &ParamCandidate(_)) => { // FIXME(#20297) -- this gives where clauses precedent // over projections. Really these are just two means |
