Rollup merge of #89224 - TaKO8Ki:change-the-order-of-suggestions, r=joshtriplett
Change the order of imports suggestions closes #83564
This commit is contained in:
commit
04d3f93a2b
2 changed files with 4 additions and 0 deletions
|
@ -1706,6 +1706,9 @@ crate fn show_candidates(
|
|||
candidates.iter().map(|c| path_names_to_string(&c.path)).collect();
|
||||
|
||||
path_strings.sort();
|
||||
let core_path_strings =
|
||||
path_strings.drain_filter(|p| p.starts_with("core::")).collect::<Vec<String>>();
|
||||
path_strings.extend(core_path_strings);
|
||||
path_strings.dedup();
|
||||
|
||||
let (determiner, kind) = if candidates.len() == 1 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue