mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Frontend: Add a rebuild diagnostic explaining why the adjacent swiftmodule was ignored.
In https://github.com/apple/swift/pull/42486 new behavior was introduced to ignore adjacent .swiftmodule files in the SDK. This behavior has caught a few people off guard so it seems like there should be diagnostics clarifying why a rebuild is occurring in this scenario. Resolves rdar://105477473
This commit is contained in:
@@ -29,6 +29,7 @@
|
||||
// RUN: -verify -Rmodule-interface-rebuild
|
||||
|
||||
import PublicSwift // expected-remark {{rebuilding module 'PublicSwift' from interface}}
|
||||
// expected-note @-1 {{was ignored because it belongs to a framework in the SDK}}
|
||||
|
||||
// The private adjacent module under PrivateFrameworks should still be tried first, and then rebuilt.
|
||||
import PrivateSwift
|
||||
|
||||
Reference in New Issue
Block a user