about summary refs log tree commit diff
path: root/tests/mir-opt/lower_array_len.array_len.NormalizeArrayLen.panic-unwind.diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-04-11 07:36:42 +0000
committerbors <bors@rust-lang.org>2023-04-11 07:36:42 +0000
commitfa3db447d79aba60d3e97901b0b455d4e38efd28 (patch)
tree869207b03e81cff4a88ab91622182151fdcb77af /tests/mir-opt/lower_array_len.array_len.NormalizeArrayLen.panic-unwind.diff
parent208a74ca5079d2f605f7dd7cd3864e355c12be22 (diff)
parent475aa2839f3edd814369f067fc382f576dbb31de (diff)
downloadrust-fa3db447d79aba60d3e97901b0b455d4e38efd28.tar.gz
rust-fa3db447d79aba60d3e97901b0b455d4e38efd28.zip
Auto merge of #14536 - ClSlaid:feat/reorder-impl-items/not-applicative-editing-assoc-items, r=Veykril
fix: restrict applicable range of `reorder-impl-trait-items`

This PR should complete the need for restricting the applicable range of `reorder-impl-trait-items`.

When the cursor is in the associated items of the `impl` range, the assist will be disabled.

Fix: #14515

## Showcases
Note: If there is any available `code-action` (`ide-assist`) available, a lightbulb icon from `lspsaga` will show in the left.

- cursor in `impl` headers
![code action available](https://user-images.githubusercontent.com/44747719/230756854-7b236018-cfa8-4005-b589-2996ec42917f.png)
Code action is available. And it is reordering impl items.
![code action detail](https://user-images.githubusercontent.com/44747719/230756971-341c7fbc-f2ba-4715-a1e5-b1add984d4dd.png)

- cursor in `impl` associated items
![code action unavailable](
https://user-images.githubusercontent.com/44747719/230756906-bee7784e-bd9d-49b2-801b-743c94b4af54.png)
Diffstat (limited to 'tests/mir-opt/lower_array_len.array_len.NormalizeArrayLen.panic-unwind.diff')
0 files changed, 0 insertions, 0 deletions