1
Fork 0

resolve: Avoid some unstable iteration 2

This commit is contained in:
Vadim Petrochenkov 2025-03-17 01:34:46 +03:00
parent 4510e86a41
commit ba4190cf7e
8 changed files with 9 additions and 14 deletions

View file

@ -946,7 +946,6 @@ impl<'ra, 'tcx> Resolver<'ra, 'tcx> {
// Check if one of single imports can still define the name,
// if it can then our result is not determined and can be invalidated.
#[allow(rustc::potential_query_instability)] // FIXME
for single_import in &resolution.single_imports {
if ignore_import == Some(*single_import) {
// This branch handles a cycle in single imports.