Skip to content

Commit 5318896

Browse files
authored
Merge pull request #58907 from DougGregor/concurrency-fileid-not-file-5.7
2 parents cb06c42 + baf45e1 commit 5318896

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

stdlib/public/Concurrency/Deque.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ struct _Deque<Element> {
417417
internal func _internalInvariant(
418418
_ condition: @autoclosure () -> Bool,
419419
_ message: @autoclosure () -> String = String(),
420-
file: StaticString = #file, line: UInt = #line
420+
file: StaticString = #fileID, line: UInt = #line
421421
) {
422422
#if INTERNAL_CHECKS_ENABLED
423423
assert(condition(), message(), file: file, line: line)

stdlib/public/Concurrency/TaskLocal.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ public final class TaskLocal<Value: Sendable>: Sendable, CustomStringConvertible
136136
/// the operation closure.
137137
@discardableResult
138138
public func withValue<R>(_ valueDuringOperation: Value, operation: () async throws -> R,
139-
file: String = #file, line: UInt = #line) async rethrows -> R {
139+
file: String = #fileID, line: UInt = #line) async rethrows -> R {
140140
// check if we're not trying to bind a value from an illegal context; this may crash
141141
_checkIllegalTaskLocalBindingWithinWithTaskGroup(file: file, line: line)
142142

@@ -161,7 +161,7 @@ public final class TaskLocal<Value: Sendable>: Sendable, CustomStringConvertible
161161
/// the operation closure.
162162
@discardableResult
163163
public func withValue<R>(_ valueDuringOperation: Value, operation: () throws -> R,
164-
file: String = #file, line: UInt = #line) rethrows -> R {
164+
file: String = #fileID, line: UInt = #line) rethrows -> R {
165165
// check if we're not trying to bind a value from an illegal context; this may crash
166166
_checkIllegalTaskLocalBindingWithinWithTaskGroup(file: file, line: line)
167167

0 commit comments

Comments
 (0)