mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Add all deserialization fatal output to the pretty stack trace
Rather than outputting diagnostics and to stderr, output all the extra
information added when deserialization fatally fails to the pretty stack
trace instead. Since the pretty stack trace is added to crash logs, this
should avoid the dance of requesting the compiler output
- Moves the previous "**** DESERIALIZATION FAILURE ..." output to the
last pretty stack trace line
- Removes the module and compiler version notes added to the fatal
diagnostic
- Adds a new effective compiler version line for all frontend failure.
Somewhat duplicates the line from the driver, but adds in the
effective version
- Adds a new line for the full misc version of the module that failed.
May double up with previous "While reading from ..." lines that are
added in various deserialization methods, but better to have it
twice than not at all
This commit is contained in:
@@ -12,6 +12,7 @@
|
||||
// CHECK: Stack dump:
|
||||
// CHECK-NEXT: Program arguments:
|
||||
// CHECK-NEXT: Swift version
|
||||
// CHECK-NEXT: Compiling with effective version
|
||||
// CHECK-NEXT: Contents of {{.*}}.filelist.txt:
|
||||
// CHECK-NEXT: ---
|
||||
// CHECK-NEXT: crash-in-user-code.swift
|
||||
|
||||
Reference in New Issue
Block a user