File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed
compiler/rustc_resolve/src Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -1706,6 +1706,9 @@ crate fn show_candidates(
1706
1706
candidates. iter ( ) . map ( |c| path_names_to_string ( & c. path ) ) . collect ( ) ;
1707
1707
1708
1708
path_strings. sort ( ) ;
1709
+ let core_path_strings =
1710
+ path_strings. drain_filter ( |p| p. starts_with ( "core::" ) ) . collect :: < Vec < String > > ( ) ;
1711
+ path_strings. extend ( core_path_strings) ;
1709
1712
path_strings. dedup ( ) ;
1710
1713
1711
1714
let ( determiner, kind) = if candidates. len ( ) == 1 {
Original file line number Diff line number Diff line change 10
10
11
11
#![ doc( html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/" ) ]
12
12
#![ feature( box_patterns) ]
13
+ #![ feature( drain_filter) ]
13
14
#![ feature( bool_to_option) ]
14
15
#![ feature( crate_visibility_modifier) ]
15
16
#![ feature( format_args_capture) ]
You can’t perform that action at this time.
0 commit comments