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(
17061706 candidates. iter ( ) . map ( |c| path_names_to_string ( & c. path ) ) . collect ( ) ;
17071707
17081708 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) ;
17091712 path_strings. dedup ( ) ;
17101713
17111714 let ( determiner, kind) = if candidates. len ( ) == 1 {
Original file line number Diff line number Diff line change 1010
1111#![ doc( html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/" ) ]
1212#![ feature( box_patterns) ]
13+ #![ feature( drain_filter) ]
1314#![ feature( bool_to_option) ]
1415#![ feature( crate_visibility_modifier) ]
1516#![ feature( format_args_capture) ]
You can’t perform that action at this time.
0 commit comments