]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #64746 - estebank:elide-impl-trait-obligations-on-err, r=cramertj
authorMazdak Farrokhzad <twingoow@gmail.com>
Wed, 25 Sep 2019 01:48:30 +0000 (03:48 +0200)
committerGitHub <noreply@github.com>
Wed, 25 Sep 2019 01:48:30 +0000 (03:48 +0200)
Remove blanket silencing of "type annotation needed" errors

Remove blanket check for existence of other errors before emitting "type annotation needed" errors, and add some eager checks to avoid adding obligations when they refer to types that reference `[type error]` in order to reduce unneeded errors.

Fix #64084.

1  2 
src/librustc/ty/mod.rs
src/librustc_typeck/check/wfcheck.rs

Simple merge
Simple merge