mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
stdlib: rename fatalError() to debugTrap()
Part of rdar://17792445 Swift SVN r20619
This commit is contained in:
@@ -185,7 +185,7 @@ class CodecTest<Codec: TestableUnicodeCodec> {
|
||||
case .Result(let us):
|
||||
decoded = us
|
||||
default:
|
||||
fatalError("decoding failed")
|
||||
debugTrap("decoding failed")
|
||||
}
|
||||
if decoded != scalar {
|
||||
println("Decoding failed: \(hex(scalar.value)) => \(hex(nsEncoded)) => \(hex(decoded.value))")
|
||||
@@ -2271,7 +2271,7 @@ import Foundation
|
||||
// about.
|
||||
class NonContiguousNSString : NSString {
|
||||
required init(coder aDecoder: NSCoder!) {
|
||||
fatalError("don't call this initializer")
|
||||
debugTrap("don't call this initializer")
|
||||
}
|
||||
|
||||
convenience init(_ utf8: [UInt8]) {
|
||||
|
||||
Reference in New Issue
Block a user