]> git.lizzy.rs Git - rust.git/commitdiff
Auto merge of #103171 - jackh726:gen-interior-hrtb-error, r=cjgillot
authorbors <bors@rust-lang.org>
Wed, 9 Nov 2022 02:02:28 +0000 (02:02 +0000)
committerbors <bors@rust-lang.org>
Wed, 9 Nov 2022 02:02:28 +0000 (02:02 +0000)
Better error for HRTB error from generator interior

cc #100013

This is just a first pass at an error. It could be better, and shouldn't really be emitted in the first place. But this is better than what was being emitted before.

1  2 
compiler/rustc_hir_analysis/src/astconv/mod.rs
compiler/rustc_hir_typeck/src/lib.rs
compiler/rustc_infer/src/infer/error_reporting/mod.rs
compiler/rustc_trait_selection/src/traits/select/mod.rs

Simple merge