mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-09 05:36:17 +00:00

When suggesting to import an item, also suggest changing the path if appropriate When we don't find an item we search all of them for an appropriate import and suggest `use`ing it. This is sometimes done for expressions that have paths with more than one segment. We now also suggest changing that path to work with the `use`. Fix #95413