mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-10 08:57:36 +00:00
![]() More robust fallback for `use` suggestion Our old way to suggest where to add `use`s would first look for pre-existing `use`s in the relevant crate/module, and if there are *no* uses, it would fallback on trying to use another item as the basis for the suggestion. But this was fragile, as illustrated in issue #87613 This PR instead identifies span of the first token after any inner attributes, and uses *that* as the fallback for the `use` suggestion. Fix #87613 |
||
---|---|---|
.. | ||
ast | ||
attr | ||
expand | ||
util | ||
ast_like.rs | ||
ast.rs | ||
entry.rs | ||
lib.rs | ||
mut_visit.rs | ||
node_id.rs | ||
ptr.rs | ||
token.rs | ||
tokenstream.rs | ||
visit.rs |