Skip to content

Commit 3c19103

Browse files
committed
Downgrade the scanning module variant diagnostic to a warning, for now.
There is concern that this diagnostic may be breaking in some cases on its own.
1 parent 7f950ff commit 3c19103

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

include/swift/AST/DiagnosticsFrontend.def

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -618,8 +618,9 @@ ERROR(ast_format_requires_dump_ast,none,
618618
ERROR(unknown_dump_ast_format,none,
619619
"unknown format '%0' requested with '-dump-ast-format'", (StringRef))
620620

621-
ERROR(dependency_scan_unexpected_variant, none,
622-
"unexpected variant during dependency scanning on module '%0'", (StringRef))
621+
WARNING(dependency_scan_unexpected_variant, none,
622+
"unexpected module variant during dependency scanning on module '%0', "
623+
"compilation of this target is likely to fail or succeed in a way that is not deterministic", (StringRef))
623624
NOTE(dependency_scan_unexpected_variant_context_hash_note, none,
624625
"first module context hash: '%0', second module context hash: '%1'", (StringRef, StringRef))
625626
NOTE(dependency_scan_unexpected_variant_module_map_note, none,

0 commit comments

Comments
 (0)