Skip to content

Commit

Permalink
Auto merge of #18050 - rust-lang:davidbarsky/push-uyvtlsvoqrxw, r=Vey…
Browse files Browse the repository at this point in the history
…kril

assist: ensure `replace_qualified_name_with_use` applies to the first path segment

This change helps a bit with the discoverability of `replace_qualified_name_with_use`. Specifically, it ensures that a cursor on the first path segment (e.g., `$0std::fmt::Debug`, where `$0` is the cursor) would result in an import along the lines of `use std::fmt;` and `fmt::Debug;` at the usage sites.
  • Loading branch information
bors committed Sep 11, 2024
2 parents e26ad21 + 3bcc2b7 commit e1f8bb6
Showing 0 changed files with 0 additions and 0 deletions.

0 comments on commit e1f8bb6

Please sign in to comment.