Skip to content

Commit 0ee1e63

Browse files
committed
Replace '#if swift(>=6.0)' with '#if compiler(>=6.0)'
1 parent aa68172 commit 0ee1e63

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

Sources/Tracing/Tracer.swift

+3-3
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ public func withSpan<T>(
322322
/// - operation: The operation that this span should be measuring
323323
/// - Returns: the value returned by `operation`
324324
/// - Throws: the error the `operation` has thrown (if any)
325-
#if swift(>=6.0)
325+
#if compiler(>=6.0)
326326
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) // for TaskLocal ServiceContext
327327
public func withSpan<T, Instant: TracerInstant>(
328328
_ operationName: String,
@@ -398,7 +398,7 @@ public func withSpan<T, Instant: TracerInstant>(
398398
/// - operation: The operation that this span should be measuring
399399
/// - Returns: the value returned by `operation`
400400
/// - Throws: the error the `operation` has thrown (if any)
401-
#if swift(>=6.0)
401+
#if compiler(>=6.0)
402402
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) // for TaskLocal ServiceContext
403403
public func withSpan<T>(
404404
_ operationName: String,
@@ -473,7 +473,7 @@ public func withSpan<T>(
473473
/// - operation: The operation that this span should be measuring
474474
/// - Returns: the value returned by `operation`
475475
/// - Throws: the error the `operation` has thrown (if any)
476-
#if swift(>=6.0)
476+
#if compiler(>=6.0)
477477
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
478478
public func withSpan<T>(
479479
_ operationName: String,

Sources/Tracing/TracerProtocol+Legacy.swift

+3-3
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ extension LegacyTracer {
307307
/// - operation: The operation that this span should be measuring
308308
/// - Returns: the value returned by `operation`
309309
/// - Throws: the error the `operation` has thrown (if any)
310-
#if swift(>=6.0)
310+
#if compiler(>=6.0)
311311
public func withAnySpan<T, Instant: TracerInstant>(
312312
_ operationName: String,
313313
at instant: @autoclosure () -> Instant,
@@ -397,7 +397,7 @@ extension LegacyTracer {
397397
/// - operation: The operation that this span should be measuring
398398
/// - Returns: the value returned by `operation`
399399
/// - Throws: the error the `operation` has thrown (if any)
400-
#if swift(>=6.0)
400+
#if compiler(>=6.0)
401401
public func withAnySpan<T>(
402402
_ operationName: String,
403403
context: @autoclosure () -> ServiceContext = .current ?? .topLevel,
@@ -602,7 +602,7 @@ extension Tracer {
602602
/// - operation: The operation that this span should be measuring
603603
/// - Returns: the value returned by `operation`
604604
/// - Throws: the error the `operation` has thrown (if any)
605-
#if swift(>=6.0)
605+
#if compiler(>=6.0)
606606
public func withAnySpan<T>(
607607
_ operationName: String,
608608
at instant: @autoclosure () -> some TracerInstant = DefaultTracerClock.now,

Sources/Tracing/TracerProtocol.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ extension Tracer {
242242
/// - operation: The operation that this span should be measuring
243243
/// - Returns: the value returned by `operation`
244244
/// - Throws: the error the `operation` has thrown (if any)
245-
#if swift(>=6.0)
245+
#if compiler(>=6.0)
246246
public func withSpan<T>(
247247
_ operationName: String,
248248
context: @autoclosure () -> ServiceContext = .current ?? .topLevel,
@@ -329,7 +329,7 @@ extension Tracer {
329329
/// - operation: The operation that this span should be measuring
330330
/// - Returns: the value returned by `operation`
331331
/// - Throws: the error the `operation` has thrown (if any)
332-
#if swift(>=6.0)
332+
#if compiler(>=6.0)
333333
public func withSpan<T>(
334334
_ operationName: String,
335335
context: @autoclosure () -> ServiceContext = .current ?? .topLevel,

0 commit comments

Comments
 (0)