about summary refs log tree commit diff
path: root/compiler/rustc_mir_transform/src/coverage/counters.rs
diff options
context:
space:
mode:
authorsurechen <chenshuo17@huawei.com>2024-03-18 14:44:26 +0800
committersurechen <chenshuo17@huawei.com>2024-03-19 12:28:23 +0800
commit19f72dfe04d030aba3885333156590d0b9191851 (patch)
treead45ec816dfbd6af80fa7ef869b05c912f39d22b /compiler/rustc_mir_transform/src/coverage/counters.rs
parent21d94a3d2c63cacf8eaf9d0ca770c0b450c558d4 (diff)
downloadrust-19f72dfe04d030aba3885333156590d0b9191851.tar.gz
rust-19f72dfe04d030aba3885333156590d0b9191851.zip
Fix incorrect mutable suggestion information for binding in ref pattern.
For ref pattern in func param, the mutability suggestion has to apply to the binding.

For example: `fn foo(&x: &i32)` -> `fn foo(&(mut x): &i32)`

fixes #122415
Diffstat (limited to 'compiler/rustc_mir_transform/src/coverage/counters.rs')
0 files changed, 0 insertions, 0 deletions