Skip to content

Commit 3f1018f

Browse files
committed
Remove a workaround for varargs not compiling on WASI.
This PR removes a workaround on WASI where we were avoiding a call to `withVaList()` because it miscompiled there. That problem was fixed by swiftlang/swift#84029 and cherry-picked to 6.2.
1 parent 279629f commit 3f1018f

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

Sources/Testing/Events/TimeValue.swift

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,6 @@ extension TimeValue: Codable {}
8181

8282
extension TimeValue: CustomStringConvertible {
8383
var description: String {
84-
#if os(WASI)
85-
// BUG: https://github.com/swiftlang/swift/issues/72398
86-
return String(describing: Duration(self))
87-
#else
8884
let (secondsFromAttoseconds, attosecondsRemaining) = attoseconds.quotientAndRemainder(dividingBy: 1_000_000_000_000_000_000)
8985
let seconds = seconds + secondsFromAttoseconds
9086
var milliseconds = attosecondsRemaining / 1_000_000_000_000_000
@@ -98,7 +94,6 @@ extension TimeValue: CustomStringConvertible {
9894
}
9995
return String(cString: buffer.baseAddress!)
10096
}
101-
#endif
10297
}
10398
}
10499

0 commit comments

Comments
 (0)