Skip to content

Commit 9652373

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_resolve/src/late.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2258,7 +2258,7 @@ impl<'a, 'ast, 'ra: 'ast, 'tcx> LateResolutionVisitor<'a, 'ast, 'ra, 'tcx> {
22582258
}
22592259
}));
22602260
}
2261-
// Ordering is not important here.
2261+
// Ordering is not important if there's only one element in the set.
22622262
#[allow(rustc::potential_query_instability)]
22632263
let mut distinct_iter = distinct.into_iter();
22642264
if let Some(res) = distinct_iter.next() {

0 commit comments

Comments
 (0)