Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 2 additions & 10 deletions Sources/ComposableArchitecture/Macros.swift
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,7 @@
@attached(memberAttribute)
@attached(extension, conformances: Reducer, CaseReducer)
#if compiler(>=6)
@available(iOS, deprecated: 9999, message: "Define your conformance via extension, instead.")@available(
macOS, deprecated: 9999, message: "Define your conformance via extension, instead."
)@available(tvOS, deprecated: 9999, message: "Define your conformance via extension, instead.")@available(
watchOS, deprecated: 9999, message: "Define your conformance via extension, instead."
)
@available(*, deprecated, message: "Define your conformance using an extension, instead")
#endif
public macro Reducer(state: _SynthesizedConformance..., action: _SynthesizedConformance...) =
#externalMacro(
Expand All @@ -56,15 +52,11 @@
/// See <doc:Reducers#Synthesizing-protocol-conformances-on-State-and-Action> for more information.
@_documentation(visibility: public)
#if compiler(>=6)
@available(iOS, deprecated: 9999, message: "Define your conformance via extension, instead.")@available(
macOS, deprecated: 9999, message: "Define your conformance via extension, instead."
)@available(tvOS, deprecated: 9999, message: "Define your conformance via extension, instead.")@available(
watchOS, deprecated: 9999, message: "Define your conformance via extension, instead."
)
@available(*, deprecated, message: "Define your conformance using an extension, instead")
#endif
public struct _SynthesizedConformance: Sendable {}

extension _SynthesizedConformance {

Check warning on line 59 in Sources/ComposableArchitecture/Macros.swift

View workflow job for this annotation

GitHub Actions / xcodebuild (16) (IOS, 16.4)

'_SynthesizedConformance' is deprecated: Define your conformance using an extension, instead

Check warning on line 59 in Sources/ComposableArchitecture/Macros.swift

View workflow job for this annotation

GitHub Actions / xcodebuild (16) (IOS, 16.4)

'_SynthesizedConformance' is deprecated: Define your conformance using an extension, instead

Check warning on line 59 in Sources/ComposableArchitecture/Macros.swift

View workflow job for this annotation

GitHub Actions / xcodebuild (16) (MACOS, 16.4)

'_SynthesizedConformance' is deprecated: Define your conformance using an extension, instead

Check warning on line 59 in Sources/ComposableArchitecture/Macros.swift

View workflow job for this annotation

GitHub Actions / xcodebuild (16) (MACOS, 16.4)

'_SynthesizedConformance' is deprecated: Define your conformance using an extension, instead

Check warning on line 59 in Sources/ComposableArchitecture/Macros.swift

View workflow job for this annotation

GitHub Actions / xcodebuild (16) (test, IOS, 16.4)

'_SynthesizedConformance' is deprecated: Define your conformance using an extension, instead

Check warning on line 59 in Sources/ComposableArchitecture/Macros.swift

View workflow job for this annotation

GitHub Actions / xcodebuild (16) (test, IOS, 16.4)

'_SynthesizedConformance' is deprecated: Define your conformance using an extension, instead

Check warning on line 59 in Sources/ComposableArchitecture/Macros.swift

View workflow job for this annotation

GitHub Actions / xcodebuild (16) (test, MACOS, 16.4)

'_SynthesizedConformance' is deprecated: Define your conformance using an extension, instead

Check warning on line 59 in Sources/ComposableArchitecture/Macros.swift

View workflow job for this annotation

GitHub Actions / xcodebuild (16) (test, MACOS, 16.4)

'_SynthesizedConformance' is deprecated: Define your conformance using an extension, instead
/// Extends the `State` or `Action` types that ``Reducer()`` creates with the `Codable`
/// protocol.
public static let codable = Self()
Expand Down
Loading