diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2023-08-01 17:39:11 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-08-01 17:39:11 +0200 |
| commit | c726dcb962b2d20d003ae36f67341801e7d7ea6a (patch) | |
| tree | 56c011db82781b0ed510060bf7a18297809b16a7 /compiler/rustc_codegen_llvm/src | |
| parent | b38718090ed49a876e4cbad619510a9a0d2c145d (diff) | |
| parent | ad0729e9d21127ba15aa3d927c057b4442156631 (diff) | |
| download | rust-c726dcb962b2d20d003ae36f67341801e7d7ea6a.tar.gz rust-c726dcb962b2d20d003ae36f67341801e7d7ea6a.zip | |
Rollup merge of #114288 - Urgau:fix-issue-109352, r=b-naber
Improve diagnostic for wrong borrow on binary operations This PR improves the diagnostic for wrong borrow on binary operations by suggesting to reborrow on appropriate expressions. ```diff + = note: an implementation for `&Foo * &Foo` exist + help: consider reborrowing both sides + | + LL | let _ = &*ref_mut_foo * &*ref_mut_foo; + | ++ ++ ``` Fixes https://github.com/rust-lang/rust/issues/109352
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions
