]> git.lizzy.rs Git - rust.git/commitdiff
rollup merge of #22185: edwardw/default-methods
authorAlex Crichton <alex@alexcrichton.com>
Wed, 11 Feb 2015 22:02:21 +0000 (14:02 -0800)
committerAlex Crichton <alex@alexcrichton.com>
Wed, 11 Feb 2015 22:02:21 +0000 (14:02 -0800)
When projecting associate types for a trait's default methods, the
trait itself was added to the predicate candidate list twice: one from
parameter environment, the other from trait definition. Then the
duplicates were deemed as code ambiguity and the compiler rejected the
code. Simply checking and dropping the duplicates solves the issue.

Closes #22036


Trivial merge