rust-analyzer/crates/syntax
bors 62dcf39ef0 Auto merge of #14723 - obsgolem:master, r=Veykril
Added remove unused imports assist

This resolves the most important part of #5131. I needed to make a couple of cosmetic changes to the search infrastructure to do this.

A few open questions:
* Should imports that don't resolve to anything be considered unused? I figured probably not, but it would be a trivial change to make if we want it.
* Is there a cleaner way to make the edits to the use list?
* Is there a cleaner way to get the list of uses that intersect the current selection?
* Is the performance acceptable? When testing this on itself, it takes a good couple seconds to perform the assist.
* Is there a way to hide the rustc diagnostics that overlap with this functionality?
2023-08-01 09:50:16 +00:00
..
fuzz fix(fuzz): Fixes broken Cargo.toml for fuzz tests 2023-01-24 10:54:10 -08:00
src Auto merge of #14723 - obsgolem:master, r=Veykril 2023-08-01 09:50:16 +00:00
test_data Spelling 2023-04-19 09:45:55 -04:00
Cargo.toml Upgrade to indexmap v2 2023-06-24 17:35:20 -07:00
rust.ungram fix: Expand eager macros to delimited comma separated expression list 2023-07-30 17:31:26 +02:00