]> git.lizzy.rs Git - rust.git/commit
coherence: skip impls with an erroneous trait ref
authorAriel Ben-Yehuda <ariel.byd@gmail.com>
Sun, 13 Nov 2016 16:54:39 +0000 (18:54 +0200)
committerAriel Ben-Yehuda <ariel.byd@gmail.com>
Sun, 13 Nov 2016 16:54:39 +0000 (18:54 +0200)
commitb8fc5120df92b5e5b7293f90230322a2b419178f
treeef4b5978185669e2fc201c230ed2e73fe79ec1a0
parentb6b98eaa40d2c81890cbeb31258aadb238f07279
coherence: skip impls with an erroneous trait ref

Impls with a erroneous trait ref are already ignored in the first part
of coherence, so ignore them in the second part too. This avoids
cascading coherence errors when 1 impl of a trait has an error.
src/librustc_typeck/coherence/overlap.rs
src/test/compile-fail/coherence-error-suppression.rs [new file with mode: 0644]