Skip to content

Commit 7d95914

Browse files
committed
Sema: Don't include @_exported on suggested imports.
The `@_exported` attribute does not need to be used consistently on imports in different source files. Additionally, since the declarations from exported imports are implicitly visible in every source file, diagnostics will never need to suggest imports of these modules anyways.
1 parent 02255d2 commit 7d95914

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

lib/Sema/TypeCheckNameLookup.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -783,9 +783,6 @@ bool swift::diagnoseMissingImportForMember(const ValueDecl *decl,
783783
flags |= sf->getImportFlags(definingModule);
784784
}
785785

786-
if (flags.contains(ImportFlags::Exported) ||
787-
parentModule->isClangOverlayOf(definingModule))
788-
importText += "@_exported ";
789786
if (flags.contains(ImportFlags::ImplementationOnly))
790787
importText += "@_implementationOnly ";
791788
if (flags.contains(ImportFlags::WeakLinked))

0 commit comments

Comments
 (0)