Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 1121d65

Browse files
Clarify reasoning behind allowing this lint in a comment
Co-authored-by: Vadim Petrochenkov <[email protected]>
1 parent 64d3961 commit 1121d65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_resolve/src/diagnostics.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2852,7 +2852,7 @@ fn show_candidates(
28522852
} else {
28532853
// Get the unique item kinds and if there's only one, we use the right kind name
28542854
// instead of the more generic "items".
2855-
// Ordering is not important here.
2855+
// Ordering is not important if there's only one element in the set.
28562856
#[allow(rustc::potential_query_instability)]
28572857
let mut kinds = accessible_path_strings
28582858
.iter()

0 commit comments

Comments
 (0)