mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
We used to assert migration scripts exist. This patch further decouples these scripts and the compiler by treating missing scripts as a regular compiler error. Related: rdar://40538097
4 lines
362 B
Swift
4 lines
362 B
Swift
// RUN: %empty-directory(%t) && not %target-swift-frontend -c -update-code -primary-file %s -F %S/mock-sdk -api-diff-data-file %S/Inputs/NoSuchFile.json -emit-migrated-file-path %t/missing_script.swift.result -emit-remap-file-path %t/missing_script.swift.remap -o /dev/null &> %t.diag
|
|
// RUN: %FileCheck %s < %t.diag
|
|
// CHECK: missing migration script from path
|