diff options
| author | Deep Majumder <deep.majumder2019@gmail.com> | 2022-12-13 15:57:48 +0530 |
|---|---|---|
| committer | Deep Majumder <deep.majumder2019@gmail.com> | 2022-12-13 15:57:48 +0530 |
| commit | 9c8bf51f142090de5c30341b744a7d7456bc309e (patch) | |
| tree | 93fed72ed3a7f2cfb4eb4e779d59bacdb7c297c4 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp | |
| parent | 71ec1457ee9868a838e4521a3510cdd416c0c295 (diff) | |
| download | rust-9c8bf51f142090de5c30341b744a7d7456bc309e.tar.gz rust-9c8bf51f142090de5c30341b744a7d7456bc309e.zip | |
Remove invalid case for mutable borrow suggestion
If we have a call such as `foo(&mut buf)` and after reference collapsing the type is inferred as `&T` where-as the required type is `&mut T`, don't suggest `foo(&mut mut buf)`. This is wrong syntactically and the issue lies elsewhere, not in the borrow. Fixes #105645
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
