Commit Graph

5 Commits

Author SHA1 Message Date
Holly Borla
f1cd9cb422 [Test] Remove REQUIRES: asserts from tests that use -swift-version 6. 2024-02-13 07:13:35 -08:00
Alexis Laferrière
eca1cf99af Sema: Don't warn on @_export public imports not used in API
An `@_export public import` is meaningful on it's own as it declares a
relationship between two modules and how clients see them. As such that
import doesn't have to be referenced from API to be appropriate. Let's
not warn on any public import with an `@_export` attribute.

rdar://122032960
2024-02-08 17:29:25 -08:00
Alexis Laferrière
ab769e57c5 [Tests] Update test showing a superfluous warning that was just fixed 2024-01-04 10:47:06 -08:00
Alexis Laferrière
b9a7034b2f [Tests] Update swiftinterface imports Swift 6 test
Update the test for imports defaulting to internal by adding the
explicit `public` modifier on all imports and the expected warnings.
Modernized a test somehow as it can't use previously shared files.

This revealed an issue with the warning about superfluous imports on
imports of submodules. I've marked one of them as a FIXME as it will
require a fix in the diagnostic.
2023-10-11 17:18:03 -07:00
Alexis Laferrière
eaf74b280b [ModuleInterface] Extract the Swift 6 variant from imports.swift
This allows us to limit the test to asserts compiler supporting
-swift-version 6.

rdar://115578753
2023-09-18 10:54:35 -07:00