about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-08-01 17:39:11 +0200
committerGitHub <noreply@github.com>2023-08-01 17:39:11 +0200
commitc726dcb962b2d20d003ae36f67341801e7d7ea6a (patch)
tree56c011db82781b0ed510060bf7a18297809b16a7 /compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
parentb38718090ed49a876e4cbad619510a9a0d2c145d (diff)
parentad0729e9d21127ba15aa3d927c057b4442156631 (diff)
downloadrust-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_llvm/llvm-wrapper/CoverageMappingWrapper.cpp')
0 files changed, 0 insertions, 0 deletions