Swift errors and diagnostics, page 15 of 20
The error codes and warnings of Swift, with the message that each one prints and what causes it. This page has 3,841 cards.
- Code
perf_diag_existential- Severity
- error
- Message
cannot use a value of protocol type in '@_noExistential' function
- Code
perf_diag_existential_type- Severity
- error
- Message
cannot use a value of protocol type {} in '@_noExistential' function
The compiler puts it in the diagnostic group ExistentialType.
- Code
perf_hint_any_pattern_uses_existential- Severity
- warning
- Message
Performance: declaration uses an existential, leading to heap allocation, reference counting, and dynamic dispatch. Consider using generic constraints or concrete types instead.
The compiler puts it in the diagnostic group ReturnTypeImplicitCopy.
- Code
perf_hint_closure_returns_array- Severity
- warning
- Message
Performance: closure returns a{}, leading to implicit copies. Consider using an 'inout' parameter instead.
The compiler puts it in the diagnostic group ExistentialType.
- Code
perf_hint_closure_returns_existential- Severity
- warning
- Message
Performance: closure returns an existential, leading to heap allocation, reference counting, and dynamic dispatch. Consider using generic constraints or concrete types instead.
The compiler puts it in the diagnostic group ExistentialType.
- Code
perf_hint_func_returns_existential- Severity
- warning
- Message
Performance: {} returns an existential, leading to heap allocation, reference counting, and dynamic dispatch. Consider using generic constraints or concrete types instead.
The compiler puts it in the diagnostic group ReturnTypeImplicitCopy.
- Code
perf_hint_function_returns_array- Severity
- warning
- Message
Performance: {} returns a{}, leading to implicit copies. Consider using an 'inout' parameter instead.
The compiler puts it in the diagnostic group HeapAllocation.
- Code
perf_hint_keypath_captures_values- Severity
- warning
- Message
a key path that captures {} value requires a heap allocation
The compiler puts it in the diagnostic group ExistentialType.
- Code
perf_hint_typealias_uses_existential- Severity
- warning
- Message
Performance: {} aliases an existential type, leading to heap allocation, reference counting, and dynamic dispatch. Consider using generic constraints or concrete types instead.
The compiler puts it in the diagnostic group UntypedThrows.
- Code
perf_hint_untyped_throws- Severity
- warning
- Message
untyped throws performs heap allocation on each 'throw'
The compiler puts it in the diagnostic group ExistentialType.
- Code
perf_hint_var_uses_existential- Severity
- warning
- Message
Performance: {} uses an existential, leading to heap allocation, reference counting, and dynamic dispatch. Consider using generic constraints or concrete types instead.
- Code
performance_allocating- Severity
- error
- Message
{} can cause an allocation
- Code
performance_arc- Severity
- error
- Message
this code performs reference counting operations which can cause locking
- Code
performance_callee_unavailable- Severity
- error
- Message
called function is not available in this module and can have unpredictable performance
- Code
performance_deallocating- Severity
- error
- Message
{} can cause a deallocation
- Code
performance_deallocating_type- Severity
- error
- Message
{} a value of type {} can cause a deallocation
- Code
performance_dynamic_casting- Severity
- error
- Message
dynamic casting can lock or allocate
- Code
performance_locking- Severity
- error
- Message
{} can cause locking
- Code
performance_metadata- Severity
- error
- Message
{} can cause metadata allocation or locks
- Code
performance_metadata_type- Severity
- error
- Message
Using type {} can cause metadata allocation or locks
- Code
performance_objectivec- Severity
- error
- Message
calls of Objective-C methods can have unpredictable performance
- Code
performance_unknown_callees- Severity
- error
- Message
called function is not known at compile time and can have unpredictable performance
- Code
placeholder_type_not_allowed- Severity
- error
- Message
type placeholder not allowed here
- Code
placeholder_type_not_allowed_in_pattern- Severity
- error
- Message
placeholder type may not appear as type of a variable
- Code
platform_condition_expected_argument- Severity
- error
- Message
expected argument to platform condition
- Code
platform_condition_expected_one_argument- Severity
- error
- Message
expected only one unlabeled argument to platform condition
- Code
pointer_argument_intrinsics_not_found- Severity
- error
- Message
broken standard library: cannot find intrinsic operations on UnsafeMutablePointer<T>
- Code
polymorphic_builtin_passed_non_trivial_non_builtin_type- Severity
- error
- Message
Argument of type {} can not be passed as an argument to a Polymorphic builtin. Polymorphic builtins can only be passed arguments that are trivial builtin typed
- Code
polymorphic_builtin_passed_type_without_static_overload- Severity
- error
- Message
Static overload {} does not exist for polymorphic builtin '{}'. Static overload implied by passing argument of type {}
- Code
possible_return_before_yield- Severity
- error
- Message
accessor must yield on all paths before returning
- Code
possibly_non_exhaustive_switch- Severity
- error
- Message
the compiler is unable to check that this switch is exhaustive in reasonable time
- Code
postfix_operator_name_cannot_start_with_unwrap- Severity
- error
- Message
postfix operator names starting with '?' or '!' are disallowed to avoid collisions with built-in unwrapping operators
- Code
pound_assert_condition_not_constant- Severity
- error
- Message
#assert condition not constant
- Code
pound_assert_disabled- Severity
- error
- Message
#assert is an experimental feature that is currently disabled
- Code
pound_assert_expected_expression- Severity
- error
- Message
expected a condition expression
- Code
pound_assert_expected_lparen- Severity
- error
- Message
expected '(' in #assert directive
- Code
pound_assert_expected_rparen- Severity
- error
- Message
expected ')' in #assert directive
- Code
pound_assert_expected_string_literal- Severity
- error
- Message
expected a string literal
- Code
pound_diagnostic_expected- Severity
- error
- Message
expected '{}' in {} directive
- Code
pound_diagnostic_expected_parens- Severity
- error
- Message
{} directive requires parentheses
- Code
pound_diagnostic_expected_string- Severity
- error
- Message
expected string literal in {} directive
- Code
pound_diagnostic_interpolation- Severity
- error
- Message
string interpolation is not allowed in {} directives
- Code
precedence_group_cycle- Severity
- error
- Message
cycle in '{}' relation
- Code
precedence_group_lower_within_module- Severity
- error
- Message
precedence group cannot be given lower precedence than group in same module; make the other precedence group higher than this one instead
- Code
precedence_group_redeclared- Severity
- error
- Message
precedence group redeclared
- Code
precedencegroup_attribute_redeclared- Severity
- error
- Message
'{}' attribute for precedence group declared multiple times
- Code
precedencegroup_not_infix- Severity
- error
- Message
only infix operators may declare a precedence
- Code
preconcurrency_conformance_not_used- Severity
- warning
- Message
'@preconcurrency' on conformance to {} has no effect
The compiler puts it in the diagnostic group StrictMemorySafety.
- Code
preconcurrency_import_unsafe- Severity
- warning
- Message
'@preconcurrency' import is not memory-safe because it can silently introduce data races; add '@unsafe' to indicate that this is unsafe
- Code
previous_installname_map_corrupted- Severity
- error
- Message
previous install name map from {} is malformed
- Code
previous_installname_map_missing- Severity
- error
- Message
cannot open previous install name map from {}
- Code
private_fileid_attr_repeated- Severity
- error
- Message
multiple SWIFT_PRIVATE_FILEID annotations were found on '{}'
- Code
property_does_not_override- Severity
- error
- Message
property does not override any property from its {}
- Code
property_use_in_closure_without_explicit_self- Severity
- error
- Message
reference to property {} in closure requires explicit use of 'self' to make capture semantics explicit
- Code
property_with_wrapper_conflict_attribute- Severity
- error
- Message
property {} with a wrapper cannot also be {}
- Code
property_with_wrapper_in_bad_context- Severity
- error
- Message
{} {} declared inside {} cannot have a wrapper
- Code
property_with_wrapper_overrides- Severity
- error
- Message
property {} with attached wrapper cannot override another property
The compiler puts it in the diagnostic group PropertyWrappers.
- Code
property_wrapper_ambiguous_enclosing_self_subscript- Severity
- error
- Message
property wrapper type {} has multiple enclosing-self subscripts {}
The compiler puts it in the diagnostic group PropertyWrappers.
- Code
property_wrapper_ambiguous_value_property- Severity
- error
- Message
property wrapper type {} has multiple non-static properties named {}
- Code
property_wrapper_attribute_not_on_property- Severity
- error
- Message
property wrapper attribute {} can only be applied to a property
- Code
property_wrapper_computed- Severity
- error
- Message
property wrapper cannot be applied to a computed property
The compiler puts it in the diagnostic group PropertyWrappers.
- Code
property_wrapper_dynamic_self_type- Severity
- error
- Message
property wrapper {} cannot have dynamic Self type
- Code
property_wrapper_effectful- Severity
- error
- Message
property wrapper's 'wrappedValue' property cannot define an 'async' or 'throws' {}
The compiler puts it in the diagnostic group PropertyWrappers.
- Code
property_wrapper_enclosing_self_subscript_keypath_type- Severity
- error
- Message
parameter {} of enclosing-self subscript should have read-only or writable key path type (got {})
The compiler puts it in the diagnostic group PropertyWrappers.
- Code
property_wrapper_failable_init- Severity
- error
- Message
property wrapper initializer {} cannot be failable
- Code
property_wrapper_init_initialValue- Severity
- warning
- Message
property wrapper's 'init(initialValue:)' should be renamed to 'init(wrappedValue:)'; use of 'init(initialValue:)' is deprecated
- Code
property_wrapper_let- Severity
- error
- Message
property wrapper can only be applied to a 'var'
- Code
property_wrapper_missing_arg_init- Severity
- error
- Message
missing argument for parameter {} in property wrapper initializer; add 'wrappedValue' and {} arguments in '@{}(...)'
- Code
property_wrapper_mutating_get_composed_to_get_only- Severity
- error
- Message
property wrapper {} with a mutating getter cannot be composed inside get-only property wrapper {}
The compiler puts it in the diagnostic group PropertyWrappers.
- Code
property_wrapper_no_value_property- Severity
- error
- Message
property wrapper type {} does not contain a non-static property named {}
- Code
property_wrapper_not_single_var- Severity
- error
- Message
property wrapper can only apply to a single variable
- Code
property_wrapper_param_mutating- Severity
- error
- Message
property wrapper applied to parameter must have a nonmutating 'wrappedValue' getter
- Code
property_wrapper_param_not_supported- Severity
- error
- Message
property wrapper attribute on parameter not yet supported on {}
- Code
property_wrapper_projection_value_missing- Severity
- error
- Message
could not find projection value property {}
- Code
property_wrapper_top_level- Severity
- error
- Message
property wrappers are not yet supported in top-level code
- Code
property_wrapper_type_access- Severity
- error
- Message
{} {} because its property wrapper type uses {} type
- Code
property_wrapper_type_not_usable_from_inline- Severity
- error
- Message
property wrapper type referenced from a '@usableFromInline' {} must be '@usableFromInline' or public
The compiler puts it in the diagnostic group PropertyWrappers.
- Code
property_wrapper_type_requirement_not_accessible- Severity
- error
- Message
{} {} cannot have more restrictive access than its enclosing property wrapper type {} (which is {})
The compiler puts it in the diagnostic group PropertyWrappers.
- Code
property_wrapper_var_must_be_static- Severity
- error
- Message
property {}, must be static because property wrapper {} can only be applied to static properties
- Code
property_wrapper_wrapperValue- Severity
- warning
- Message
property wrapper's 'wrapperValue' property should be renamed to 'projectedValue'; use of 'wrapperValue' is deprecated
The compiler puts it in the diagnostic group PropertyWrappers.
- Code
property_wrapper_wrong_initial_value_init- Severity
- error
- Message
{} parameter type ({}) must be the same as its 'wrappedValue' property type ({}) or an '@autoclosure' thereof
- Code
protocol_compilerinitialized- Severity
- error
- Message
'@_compilerInitialized' is not currently supported in protocols
- Code
protocol_composition_one_class- Severity
- error
- Message
protocol-constrained type cannot contain class {} because it already contains class {}
- Code
protocol_declares_duplicate_primary_assoc_type- Severity
- error
- Message
duplicate primary associated type name {}
- Code
protocol_declares_unknown_primary_assoc_type- Severity
- error
- Message
an associated type named {} must be declared in the protocol {} or a protocol it inherits
- Code
protocol_derivation_is_broken- Severity
- error
- Message
protocol {} is broken; cannot derive conformance for type {}
- Code
protocol_does_not_conform_static- Severity
- error
- Message
{} cannot be used as a type conforming to protocol {} because {} has static requirements
- Code
protocol_does_not_have_primary_assoc_type- Severity
- error
- Message
protocol {} does not have primary associated types that can be constrained
- Code
protocol_extension_in_where_clause- Severity
- error
- Message
{} was defined in extension of protocol {} and cannot be referenced from a {}
- Code
protocol_has_missing_requirements- Severity
- error
- Message
type {} cannot conform to protocol {} because it has requirements that cannot be satisfied
- Code
protocol_has_missing_requirements_versioned- Severity
- error
- Message
type {} cannot conform to protocol {} (compiled with Swift {}) because it has requirements that could not be loaded in Swift {}
- Code
protocol_init_argument_init- Severity
- error
- Message
default argument not permitted in a protocol initializer
- Code
protocol_init_with_body- Severity
- error
- Message
protocol initializers must not have bodies
- Code
protocol_method_argument_init- Severity
- error
- Message
default argument not permitted in a protocol method
- Code
protocol_method_with_body- Severity
- error
- Message
protocol methods must not have bodies
- Code
protocol_property_must_be_computed- Severity
- error
- Message
property in protocol must have explicit { get } or { get set } specifier
- Code
protocol_property_must_be_computed_var- Severity
- error
- Message
protocols cannot require properties to be immutable; declare read-only properties by using 'var' with a '{ get }' specifier
- Code
protocol_req_added- Severity
- error
- Message
{} has been added as a protocol requirement
- Code
protocol_setter_name- Severity
- error
- Message
setter in a protocol cannot have a name
- Code
protocol_subscript_argument_init- Severity
- error
- Message
default argument not permitted in a protocol subscript
- Code
protocol_usable_from_inline- Severity
- error
- Message
protocol {} by '@usableFromInline' protocol must be '@usableFromInline' or public
- Code
protocol_usable_from_inline_warn- Severity
- warning
- Message
protocol {} by '@usableFromInline' protocol should be '@usableFromInline' or public
- Code
protocol_where_clause_self_requirement- Severity
- error
- Message
constraint with subject type of 'Self' is not supported; consider adding requirement to protocol inheritance clause instead
- Code
protocol_witness_borrow_mutate_conflict- Severity
- error
- Message
candidate is not a stored property or a computed property with {} accessor, but protocol requires it
- Code
protocol_witness_borrow_mutate_unsupported- Severity
- error
- Message
borrow/mutate protocol requirements can only be witnessed in a struct
- Code
public_decl_needs_availability- Severity
- error
- Message
public declarations should have an availability attribute with an introduction version
The compiler puts it in the diagnostic group ExplicitSendable.
- Code
public_decl_needs_sendable- Severity
- warning
- Message
public {} does not specify whether it is 'Sendable' or not
- Code
raw_type_change- Severity
- error
- Message
{}({}) is now {} representable
- Code
raw_type_not_first- Severity
- error
- Message
raw type {} must appear first in the enum inheritance clause
- Code
raw_type_not_literal_convertible- Severity
- error
- Message
raw type {} is not expressible by a string, integer, or floating-point literal
The compiler puts it in the diagnostic group RegionIsolation.
- Code
rbi_isolation_crossing_result- Severity
- error
- Message
non-Sendable {}-typed result can not be returned from {} {} to {} context
The compiler puts it in the diagnostic group RegionIsolation.
- Code
rbi_isolation_crossing_result_no_decl- Severity
- error
- Message
non-Sendable {}-typed result can not be returned from {} function to {} context
The compiler puts it in the diagnostic group RegionIsolationCrossIsolationDataRace.
- Code
rbi_merge_failure_assign- Severity
- error
- Message
assignment could allow for references between values exposed to {} and {} risking data races
The compiler puts it in the diagnostic group RegionIsolationCrossIsolationDataRace.
- Code
rbi_merge_failure_cast- Severity
- error
- Message
casting value to type {} could allow for references between values exposed to {} and {} risking data races
The compiler puts it in the diagnostic group RegionIsolationCrossIsolationDataRace.
- Code
rbi_merge_failure_isolatedfn- Severity
- error
- Message
passing value to {} {} could allow for references between values exposed to {} and {} risking data races
The compiler puts it in the diagnostic group RegionIsolationCrossIsolationDataRace.
- Code
rbi_merge_failure_isolatedfn_named- Severity
- error
- Message
passing {} to {} {} could allow for references between values exposed to {} and {} risking data races
The compiler puts it in the diagnostic group RegionIsolationCrossIsolationDataRace.
- Code
rbi_merge_failure_nonisolatedfn- Severity
- error
- Message
passing arguments to {} could allow for references between values exposed to {} and {} risking data races
The compiler puts it in the diagnostic group RegionIsolationCrossIsolationDataRace.
- Code
rbi_merge_failure_unknown- Severity
- error
- Message
executing operation could allow for references between values exposed to {} and {} risking data races
… cannot be … when …. readwriter_mutatingness_differs_from_reader_or_writer_mutatingness
- Code
readwriter_mutatingness_differs_from_reader_or_writer_mutatingness- Severity
- error
- Message
{} cannot be {} when {}
- Code
reasync_function_type- Severity
- error
- Message
only function declarations may be marked 'reasync'; did you mean 'async'?
- Code
reasync_without_async_parameter- Severity
- error
- Message
'reasync' function must take an 'async' function argument
- Code
rebuilding_module_from_interface- Severity
- remark
- Message
rebuilding module '{}' from interface '{}'
- Code
recursive_accessor_reference- Severity
- warning
- Message
attempting to {} {} within its own {}
- Code
recursive_decl_reference- Severity
- error
- Message
{} references itself
- Code
recursive_enum_not_indirect- Severity
- error
- Message
recursive enum {} is not marked 'indirect'
- Code
recursive_generic_signature- Severity
- error
- Message
{} has self-referential generic requirements
- Code
recursive_generic_signature_extension- Severity
- error
- Message
extension of {} has self-referential generic requirements
- Code
recursive_same_type_constraint- Severity
- error
- Message
same-type constraint {} == {} is recursive
- Code
recursive_superclass_constraint- Severity
- error
- Message
superclass constraint {} : {} is recursive
- Code
redefining_builtin_operator- Severity
- error
- Message
cannot declare a custom {} '{}' operator
- Code
redundant_any_in_existential- Severity
- error
- Message
redundant 'any' in type {}
- Code
redundant_class_requirement- Severity
- error
- Message
redundant 'class' requirement
- Code
redundant_conformance- Severity
- error
- Message
redundant conformance of {} to protocol {}
- Code
redundant_conformance_adhoc- Severity
- warning
- Message
conformance of {} to protocol {} was already stated in {} module {}
- Code
redundant_conformance_adhoc_conditional- Severity
- warning
- Message
conformance of {} to protocol {} conflicts with that stated in {} module {} and will be ignored; there cannot be more than one conformance, even with different conditional bounds
- Code
redundant_conformance_conditional- Severity
- error
- Message
conflicting conformance of {} to protocol {}; there cannot be more than one conformance, even with different conditional bounds
- Code
redundant_conformance_protocol- Severity
- error
- Message
redundant conformance of {} to protocol '{}'
- Code
redundant_particular_case- Severity
- warning
- Message
case is already handled by previous patterns; consider removing it
- Code
redundant_particular_literal_case- Severity
- warning
- Message
literal value is already handled by previous pattern; consider removing it
- Code
redundant_prefix_compilation_flag- Severity
- error
- Message
invalid argument '-D{}'; did you provide a redundant '-D' in your build settings?
- Code
reference_to_invalid_decl- Severity
- error
- Message
cannot reference invalid declaration {}
- Code
reference_type_empty_retain_release_name- Severity
- error
- Message
reference type {} has an empty {} operation name
- Code
reference_type_exactly_one_retain_release_attr- Severity
- error
- Message
reference type {} must have exactly one '{}:' Swift attribute
- Code
reference_type_mixed_immortal_marker- Severity
- error
- Message
reference type {} must mark both or neither of its retain and release operations as immortal
- Code
referencebindings_binding_must_be_to_lvalue- Severity
- error
- Message
{} bindings must be bound to an lvalue
- Code
referencebindings_binding_must_have_initial_value- Severity
- error
- Message
{} bindings must have an initial value
- Code
referenced_value_no_accessor- Severity
- error
- Message
referenced declaration has no {}
- Code
refutable_pattern_requires_initializer- Severity
- error
- Message
pattern matching requires an initializer value to match against
- Code
regex_capture_types_failed_to_decode- Severity
- error
- Message
failed to decode capture types for regular expression literal; this may be a compiler bug
- Code
regex_feature_unavailable- Severity
- error
- Message
{} is only available in {} {} or newer
The compiler puts it in the diagnostic group RegionIsolation.
- Code
regionbasedisolation_inout_sending_cannot_be_actor_isolated- Severity
- error
- Message
'inout sending' parameter {} {}
The compiler puts it in the diagnostic group RegionIsolation.
- Code
regionbasedisolation_inout_sending_cannot_be_returned_param- Severity
- error
- Message
'inout sending' parameter {} cannot be returned
… cannot be returned. regionbasedisolation_inout_sending_cannot_be_returned_value
The compiler puts it in the diagnostic group RegionIsolation.
- Code
regionbasedisolation_inout_sending_cannot_be_returned_value- Severity
- error
- Message
{} cannot be returned
Result of … cannot be returned. regionbasedisolation_inout_sending_cannot_be_returned_value_result
The compiler puts it in the diagnostic group RegionIsolation.
- Code
regionbasedisolation_inout_sending_cannot_be_returned_value_result- Severity
- error
- Message
result of {} cannot be returned
The compiler puts it in the diagnostic group RegionIsolation.
- Code
regionbasedisolation_inout_sending_in_same_region- Severity
- error
- Message
'inout sending' parameters {} and {} can be potentially accessed from each other at function return risking data races in caller
The compiler puts it in the diagnostic group SendingRisksDataRace.
- Code
regionbasedisolation_named_send_yields_race- Severity
- error
- Message
sending {} risks causing data races
The compiler puts it in the diagnostic group RegionIsolation.
- Code
regionbasedisolation_out_sending_cannot_be_actor_isolated_named- Severity
- error
- Message
returning {}{} as a 'sending' result risks causing data races{}
The compiler puts it in the diagnostic group RegionIsolation.
- Code
regionbasedisolation_out_sending_cannot_be_actor_isolated_type- Severity
- error
- Message
returning a {}{} value as a 'sending' result risks causing data races{}
The compiler puts it in the diagnostic group SendingRisksDataRace.
- Code
regionbasedisolation_sent_autoclosure_captures_mutable_var- Severity
- error
- Message
mutable {} cannot be captured by 'sending' @autoclosure parameter because {} is accessed later in the current task
The compiler puts it in the diagnostic group SendingRisksDataRace.
- Code
regionbasedisolation_sent_autoclosure_captures_value- Severity
- error
- Message
{} cannot be captured by 'sending' @autoclosure parameter because {} is accessed later in the current task
The compiler puts it in the diagnostic group SendingRisksDataRace.
- Code
regionbasedisolation_sent_closure_captures_mutable_var- Severity
- error
- Message
closure passed as an argument to a 'sending' parameter captures reference to mutable {} which is accessed later by code in the current isolation context
The compiler puts it in the diagnostic group SendingRisksDataRace.
- Code
regionbasedisolation_sent_closure_captures_value- Severity
- error
- Message
closure passed as an argument to a 'sending' parameter captures {} which is accessed later by code in the current isolation context
The compiler puts it in the diagnostic group RegionIsolation.
- Code
regionbasedisolation_task_or_actor_isolated_sent- Severity
- error
- Message
task or actor-isolated value cannot be sent
The compiler puts it in the diagnostic group SendingRisksDataRace.
- Code
regionbasedisolation_type_send_yields_race- Severity
- error
- Message
sending value of non-Sendable type {} risks causing data races
The compiler puts it in the diagnostic group SendingClosureRisksDataRace.
- Code
regionbasedisolation_typed_tns_passed_sending_closure- Severity
- error
- Message
passing closure as a 'sending' parameter risks causing data races between {} and concurrent execution of the closure
The compiler puts it in the diagnostic group RegionIsolationUnknownPattern.
- Code
regionbasedisolation_unknown_pattern- Severity
- error
- Message
pattern that the region-based isolation checker does not understand how to check. Please file a bug
The compiler puts it in the diagnostic group UnusedImportAccess.
- Code
remove_package_import- Severity
- warning
- Message
package import of {} was not used in package declarations
The compiler puts it in the diagnostic group PreconcurrencyImport.
- Code
remove_predates_concurrency_import- Severity
- warning
- Message
'@preconcurrency' on module {} has no effect
The compiler puts it in the diagnostic group UnusedImportAccess.
- Code
remove_public_import- Severity
- warning
- Message
public import of {} was not used in public declarations or inlinable code
- Code
removed_decl- Severity
- error
- Message
{} has been removed{}
- Code
renamed_decl- Severity
- error
- Message
{} has been renamed to {}
- Code
renamed_platform_condition_argument- Severity
- warning
- Message
'{}' has been renamed to '{}'
- Code
reordering_tuple_shuffle- Severity
- error
- Message
cannot implicitly reorder tuple elements from '{}' to '{}'
- Code
repeated_identifier- Severity
- error
- Message
found an unexpected second identifier in {} declaration; is there an accidental break?
- Code
repeating_swift_attrs- Severity
- error
- Message
multiple {} annotations found on {}
- Code
replace_equal_with_colon_for_value- Severity
- error
- Message
'=' has been replaced with ':' in attribute arguments
- Code
replay_output- Severity
- remark
- Message
replay output file '{}': id '{}'
- Code
req_near_match- Severity
- warning
- Message
{} nearly matches {} requirement {} of protocol {}
- Code
require_const_arg_for_parameter- Severity
- error
- Message
expected a compile-time value argument for a '@const' parameter
- Code
require_const_initializer_for_const- Severity
- error
- Message
'@const' value should be initialized with a compile-time value
- Code
require_let_for_literal- Severity
- error
- Message
let is required for a _const variable declaration
- Code
require_literal_initializer_for_literal- Severity
- error
- Message
_const let should be initialized with a literal value
- Code
require_static_for_literal- Severity
- error
- Message
'static' is required for _const variable declaration
- Code
required_initializer_in_extension- Severity
- error
- Message
'required' initializer must be declared directly in class {} (not in an extension)
- Code
required_initializer_missing- Severity
- error
- Message
'required' initializer {} must be provided by subclass of {}
- Code
required_initializer_missing_keyword- Severity
- error
- Message
'required' modifier must be present on all overrides of a required initializer
- Code
required_initializer_nonclass- Severity
- error
- Message
'required' initializer in non-class type {}
- Code
required_initializer_not_accessible- Severity
- error
- Message
'required' initializer must be accessible wherever class {} can be subclassed