]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #106978 - mejrs:mir_build3, r=davidtwco
authorMatthias Krüger <matthias.krueger@famsik.de>
Thu, 26 Jan 2023 14:02:20 +0000 (15:02 +0100)
committerGitHub <noreply@github.com>
Thu, 26 Jan 2023 14:02:20 +0000 (15:02 +0100)
commite8c17de11d02eb25b768d6c8da342d50db864711
treed365133eb8070b1e402b4ffd7049d3ad2ea48a10
parent4b97f075342c0597cedd36d8d901c6ac84651f73
parent6fe4cf795bb50e2168f9bc3f12391febc83a54c7
Rollup merge of #106978 - mejrs:mir_build3, r=davidtwco

Migrate mir_build's borrow conflicts

This also changes the error message slightly, for two reasons:

- I'm not a fan of saying "value borrowed, by `x`, here"
- it simplifies the error implementation significantly.
compiler/rustc_error_messages/locales/en-US/mir_build.ftl
compiler/rustc_mir_build/src/errors.rs
compiler/rustc_mir_build/src/thir/pattern/check_match.rs