You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Deprecate the -warn-on-potentially-unavailable-enum-case option.
When `-warn-on-potentially-unavailable-enum-case` was introduced, the build
system was required to invoke `swift-frontend` at artificially low deployment
targets when emitting `.swiftinterface` files for legacy architectures. Because
the deployment target was low, some availability diagnostics needed to be
de-fanged in order to allow module interface emission to succeed. Today, the
build system is able to use the correct deployment target when emitting module
interfaces and the `-warn-on-potentially-unavailable-enum-case` is superfluous,
so deprecate it.
Resolves rdar://114092047
publicstaticletwarnLongFunctionBodies:Option=Option("-warn-long-function-bodies",.separate, attributes:[.helpHidden,.frontend,.noDriver], metaVar:"<n>", helpText:"Warns when type-checking a function takes longer than <n> ms")
791
791
publicstaticletwarnOnEditorPlaceholder:Option=Option("-warn-on-editor-placeholder",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Downgrade the editor placeholder error to a warning")
792
-
publicstaticletwarnOnPotentiallyUnavailableEnumCase:Option=Option("-warn-on-potentially-unavailable-enum-case",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Downgrade potential unavailability of enum case to a warning")
792
+
publicstaticletwarnOnPotentiallyUnavailableEnumCase:Option=Option("-warn-on-potentially-unavailable-enum-case",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Deprecated, has no effect")
793
793
publicstaticletwarnRedundantRequirements:Option=Option("-warn-redundant-requirements",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Emit warnings for redundant requirements in generic signatures")
794
794
publicstaticletwarnSwift3ObjcInferenceComplete:Option=Option("-warn-swift3-objc-inference-complete",.flag, attributes:[.frontend,.doesNotAffectIncrementalBuild], helpText:"Warn about deprecated @objc inference in Swift 3 for every declaration that will no longer be inferred as @objc in Swift 4")
795
795
publicstaticletwarnSwift3ObjcInferenceMinimal:Option=Option("-warn-swift3-objc-inference-minimal",.flag, attributes:[.frontend,.doesNotAffectIncrementalBuild], helpText:"Warn about deprecated @objc inference in Swift 3 based on direct uses of the Objective-C entrypoint")
0 commit comments