diff options
| author | dianne <diannes.gm@gmail.com> | 2024-11-17 00:11:34 -0800 |
|---|---|---|
| committer | dianne <diannes.gm@gmail.com> | 2024-11-17 18:09:36 -0800 |
| commit | 546ba3d310ae2d795b43188ce1b9980b33e690e5 (patch) | |
| tree | 0b9f924ca255a34bdf8cf0146df55c5b82e68593 /compiler/rustc_pattern_analysis | |
| parent | 5afd5ad29c014de69bea61d028a1ce832ed75a75 (diff) | |
| download | rust-546ba3d310ae2d795b43188ce1b9980b33e690e5.tar.gz rust-546ba3d310ae2d795b43188ce1b9980b33e690e5.zip | |
`suggest_borrow_generic_arg`: instantiate clauses properly
Fixes issue 133118. This also modifies `tests/ui/moves/moved-value-on-as-ref-arg.rs` to have more useful bounds on the tests for suggestions to borrow `Borrow` and `BorrowMut` arguments. With its old tautological `T: BorrowMut<T>` bound, this fix would make it suggest a shared borrow for that argument.
Diffstat (limited to 'compiler/rustc_pattern_analysis')
0 files changed, 0 insertions, 0 deletions
