]> git.lizzy.rs Git - rust.git/commit
Auto merge of #104920 - compiler-errors:avoid-infcx-build, r=jackh726
authorbors <bors@rust-lang.org>
Mon, 5 Dec 2022 02:51:06 +0000 (02:51 +0000)
committerbors <bors@rust-lang.org>
Mon, 5 Dec 2022 02:51:06 +0000 (02:51 +0000)
commitb9341bfdb1dec09b49b1e7d01d7c4db0e2436737
tree6800154302bc90cde81fbc10593a70f59bf6b48a
parentd1449560e31f7f801d81268a3dad783181656dff
parenta68eae2f70ce58fbf3bc614f19b4570d2c28d54c
Auto merge of #104920 - compiler-errors:avoid-infcx-build, r=jackh726

Avoid some `InferCtxt::build` calls

Either because we're inside of an `InferCtxt` already, or because we're not in a place where we'd ever see inference vars.

r? types
compiler/rustc_trait_selection/src/traits/error_reporting/mod.rs