We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cfff31b commit 353d637Copy full SHA for 353d637
compiler/rustc_resolve/src/diagnostics.rs
@@ -1707,6 +1707,12 @@ crate fn show_candidates(
1707
candidates.iter().map(|c| path_names_to_string(&c.path)).collect();
1708
1709
path_strings.sort();
1710
+ let core_path_strings =
1711
+ path_strings.iter().filter(|p| p.starts_with("core::")).cloned().collect::<Vec<String>>();
1712
+ if !core_path_strings.is_empty() {
1713
+ path_strings.retain(|p| !p.starts_with("core::"));
1714
+ }
1715
+ path_strings.extend(core_path_strings);
1716
path_strings.dedup();
1717
1718
let (determiner, kind) = if candidates.len() == 1 {
0 commit comments