]> git.lizzy.rs Git - rust.git/commit - src/tools/miri
Rollup merge of #99539 - compiler-errors:bidirectional-block-suggestions, r=fee1...
authorDylan DPC <99973273+Dylan-DPC@users.noreply.github.com>
Fri, 22 Jul 2022 06:23:42 +0000 (11:53 +0530)
committerGitHub <noreply@github.com>
Fri, 22 Jul 2022 06:23:42 +0000 (11:53 +0530)
commit92bebac0b93011212c48a12f068a16b19376b55a
tree4db7642303ff28d02ed7d15093b6bb5c6b0c4b52
parentaec458b54f1ddcd5aada9a8e83d79348e2a3be41
parent3eef023da04cd732ee6656867e2161b7dbfee821
Rollup merge of #99539 - compiler-errors:bidirectional-block-suggestions, r=fee1-dead

Improve suggestions for returning binding

Fixes #99525

Also reworks the cause codes for match and if a bit, I think cleaning them up in a positive way.
We no longer need to call `could_remove_semicolon` in successful code, which might save a few cycles?
compiler/rustc_trait_selection/src/traits/error_reporting/mod.rs