update uses of extract_if in the compiler
This commit is contained in:
parent
03f1b73339
commit
fe521506a6
7 changed files with 13 additions and 13 deletions
|
@ -2817,11 +2817,11 @@ fn show_candidates(
|
|||
path_strings.sort_by(|a, b| a.0.cmp(&b.0));
|
||||
path_strings.dedup_by(|a, b| a.0 == b.0);
|
||||
let core_path_strings =
|
||||
path_strings.extract_if(|p| p.0.starts_with("core::")).collect::<Vec<_>>();
|
||||
path_strings.extract_if(.., |p| p.0.starts_with("core::")).collect::<Vec<_>>();
|
||||
let std_path_strings =
|
||||
path_strings.extract_if(|p| p.0.starts_with("std::")).collect::<Vec<_>>();
|
||||
path_strings.extract_if(.., |p| p.0.starts_with("std::")).collect::<Vec<_>>();
|
||||
let foreign_crate_path_strings =
|
||||
path_strings.extract_if(|p| !p.0.starts_with("crate::")).collect::<Vec<_>>();
|
||||
path_strings.extract_if(.., |p| !p.0.starts_with("crate::")).collect::<Vec<_>>();
|
||||
|
||||
// We list the `crate` local paths first.
|
||||
// Then we list the `std`/`core` paths.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue