From 235fa6b34cc06a04660e64aae775933eb7ae490a Mon Sep 17 00:00:00 2001 From: Vadim Petrochenkov Date: Thu, 7 May 2026 19:18:22 +0300 Subject: [PATCH] resolve: Fix a false positive "cannot reexport" error for ambiguous glob sets --- compiler/rustc_resolve/src/imports.rs | 4 ++++ .../ambiguous-import-visibility-globglob-reexport.rs | 3 ++- ...biguous-import-visibility-globglob-reexport.stderr | 11 ----------- 3 files changed, 6 insertions(+), 12 deletions(-) delete mode 100644 tests/ui/imports/ambiguous-import-visibility-globglob-reexport.stderr diff --git a/compiler/rustc_resolve/src/imports.rs b/compiler/rustc_resolve/src/imports.rs index 1b9e5d2a2daa..b36dd1ef31bb 100644 --- a/compiler/rustc_resolve/src/imports.rs +++ b/compiler/rustc_resolve/src/imports.rs @@ -822,6 +822,10 @@ pub(crate) fn lint_reexports(&mut self, exported_ambiguities: FxHashSet $DIR/ambiguous-import-visibility-globglob-reexport.rs:11:16 - | -LL | pub(crate) use m_crate::*; - | ^^^^^^^^^^ re-export of crate public `S` - | - = note: consider declaring type or module `S` with `pub` - -error: aborting due to 1 previous error - -For more information about this error, try `rustc --explain E0365`.