]> git.lizzy.rs Git - rust.git/commit
Backport only: avoid ICE on bad placeholder type
authorEsteban Küber <esteban@kuber.com.ar>
Thu, 20 Feb 2020 19:05:24 +0000 (11:05 -0800)
committerEsteban Küber <esteban@kuber.com.ar>
Thu, 20 Feb 2020 19:05:24 +0000 (11:05 -0800)
commit1cb555a1dc809a8d310354678ef9c43f01e41ad4
treea2b51cd652237be20d56ee259848a4ac416274ee
parenta643ee8d693b8100e6f54f2a01ff7cde05eb65c5
Backport only: avoid ICE on bad placeholder type

 #69148 has a proper fix, but it is too big to backport.
This change avoids the ICE by actually emitting an appropriate error. The
output will be duplicated in some cases, but that's better than the
avoidable ICE.
src/librustc_typeck/collect.rs
src/test/ui/did_you_mean/bad-assoc-ty.rs
src/test/ui/did_you_mean/bad-assoc-ty.stderr
src/test/ui/self/self-infer.rs
src/test/ui/self/self-infer.stderr
src/test/ui/typeck/typeck_type_placeholder_item.rs
src/test/ui/typeck/typeck_type_placeholder_item.stderr