mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
The new message is: "Please submit a bug report (https://swift.org/contributing/#reporting-bugs) and include the crash backtrace." 1. In crash logs we used to print a message which points to the llvm bug tracking page. Now it points to the swift.org bug tracking guidelines. 2. Use the same message in all compiler diagnostics which ask the user to file a bug report. rdar://problem/70488534
22 lines
1.4 KiB
Swift
22 lines
1.4 KiB
Swift
// RUN: %empty-directory(%t)
|
|
// RUN: %target-swift-frontend -emit-module -o %t -module-name Lib -I %S/Inputs/custom-modules -swift-version 4 %s
|
|
|
|
// RUN: echo 'import Lib; _ = Sub.disappearingMethod' | not --crash %target-swift-frontend -typecheck -I %t -I %S/Inputs/custom-modules -swift-version 4 -disable-deserialization-recovery -Xcc -DBAD - 2>&1 | %FileCheck -check-prefix CHECK-CRASH -check-prefix CHECK-CRASH-4 %s
|
|
// RUN: echo 'import Lib; _ = Sub.disappearingMethod' | not --crash %target-swift-frontend -typecheck -I %t -I %S/Inputs/custom-modules -swift-version 4.2 -disable-deserialization-recovery -Xcc -DBAD - 2>&1 | %FileCheck -check-prefix CHECK-CRASH -check-prefix CHECK-CRASH-4_2 %s
|
|
|
|
// REQUIRES: objc_interop
|
|
|
|
import Overrides
|
|
|
|
public class Sub: Base {
|
|
public override func disappearingMethod() {}
|
|
}
|
|
|
|
// CHECK-CRASH: error: fatal error encountered while reading from module 'Lib'; please submit a bug report (https://swift.org/contributing/#reporting-bugs) and include the project
|
|
// CHECK-CRASH: note: module 'Lib' full misc version is
|
|
// CHECK-CRASH-4-NOT: note: compiling as
|
|
// CHECK-CRASH-4_2: note: compiling as Swift 4.2, with 'Lib' built as Swift 4.1.50
|
|
// CHECK-CRASH-LABEL: *** DESERIALIZATION FAILURE (please include this section in any bug report) ***
|
|
// CHECK-CRASH: could not find 'disappearingMethod()' in parent class
|
|
// CHECK-CRASH: While loading members for 'Sub' (in module 'Lib')
|