]> git.lizzy.rs Git - rust.git/commitdiff
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)
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.

1  2 
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