Programming Search⌘K

Swift errors and diagnostics, page 6 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.

'@differentiable' function type requires at least one differentiability parameter, i.e. a non-'@noDerivative' parameter whose type conforms to 'Differentiable'…. differentiable_function_type_no_differentiability_parameters

Code
differentiable_function_type_no_differentiability_parameters
Severity
error
Message
'@differentiable' function type requires at least one differentiability parameter, i.e. a non-'@noDerivative' parameter whose type conforms to 'Differentiable'{}

Source: github.com. JSON record. This entry is a card. Help write this page.

'@differentiable' function returning Void must have at least one differentiable inout parameter, i.e. a non-'@noDerivative' parameter whose type conforms to 'Differentiable'. differentiable_function_type_void_result

Code
differentiable_function_type_void_result
Severity
error
Message
'@differentiable' function returning Void must have at least one differentiable inout parameter, i.e. a non-'@noDerivative' parameter whose type conforms to 'Differentiable'

Source: github.com. JSON record. This entry is a card. Help write this page.

Synthesis of the 'Differentiable.move(by:)' requirement for … requires 'wrappedValue' in property wrapper … to be mutable or have a non-mutating 'move(by:)'; add an explicit '@noDerivative' attribute…. differentiable_immutable_wrapper_implicit_noderivative_fixit

Code
differentiable_immutable_wrapper_implicit_noderivative_fixit
Severity
warning
Message
synthesis of the 'Differentiable.move(by:)' requirement for {} requires 'wrappedValue' in property wrapper {} to be mutable or have a non-mutating 'move(by:)'; add an explicit '@noDerivative' attribute{}

Source: github.com. JSON record. This entry is a card. Help write this page.

Synthesis of the 'Differentiable.move(by:)' requirement for … requires all stored properties not marked with '@noDerivative' to be mutable or have a non-mutating 'move(by:)'; use 'var' instead, or add an explicit '@noDerivative' attribute …. differentiable_let_property_implicit_noderivative_fixit

Code
differentiable_let_property_implicit_noderivative_fixit
Severity
warning
Message
synthesis of the 'Differentiable.move(by:)' requirement for {} requires all stored properties not marked with '@noDerivative' to be mutable or have a non-mutating 'move(by:)'; use 'var' instead, or add an explicit '@noDerivative' attribute {}

Source: github.com. JSON record. This entry is a card. Help write this page.

Parameter … of type … in … is not supported in Embedded Swift; only concrete types, or 'any'/'some' types of an '@Resolvable protocol' may appear in 'distributed func' signatures. distributed_embedded_any_some_param_not_supported

Code
distributed_embedded_any_some_param_not_supported
Severity
error
Message
parameter {} of type {} in {} is not supported in Embedded Swift; only concrete types, or 'any'/'some' types of an '@Resolvable protocol' may appear in 'distributed func' signatures

Source: github.com. JSON record. This entry is a card. Help write this page.

Return type … of … is not supported in Embedded Swift; only concrete types, or 'any'/'some' types of an '@Resolvable' protocol may appear in 'distributed func' signatures. distributed_embedded_any_some_result_not_supported

Code
distributed_embedded_any_some_result_not_supported
Severity
error
Message
return type {} of {} is not supported in Embedded Swift; only concrete types, or 'any'/'some' types of an '@Resolvable' protocol may appear in 'distributed func' signatures

Source: github.com. JSON record. This entry is a card. Help write this page.

Cannot call an initializer or static method, which is defined as default protocol method, from a class method or initializer. embedded_call_generic_function_with_dynamic_self

The compiler puts it in the diagnostic group EmbeddedRestrictions.

Code
embedded_call_generic_function_with_dynamic_self
Severity
error
Message
cannot call an initializer or static method, which is defined as default protocol method, from a class method or initializer

Source: github.com. JSON record. This entry is a card. Help write this page.

Cannot specialize the conformance of … to '…' in embedded Swift because its witness methods create infinitely many specializations of the conformance. embedded_infinite_conformance_specialization

The compiler puts it in the diagnostic group EmbeddedRestrictions.

Code
embedded_infinite_conformance_specialization
Severity
error
Message
cannot specialize the conformance of {} to '{}' in embedded Swift because its witness methods create infinitely many specializations of the conformance

Source: github.com. JSON record. This entry is a card. Help write this page.

Casting to … across a module boundary in embedded Swift may fail at runtime because its type metadata is not unique; mark … with '@export(interface)' in its defining module. embedded_swift_cast_to_nonunique_type

The compiler puts it in the diagnostic group EmbeddedRestrictions.

Code
embedded_swift_cast_to_nonunique_type
Severity
warning
Message
casting to {} across a module boundary in embedded Swift may fail at runtime because its type metadata is not unique; mark {} with '@export(interface)' in its defining module

Source: github.com. JSON record. This entry is a card. Help write this page.

Cannot specialize pack expression or statement in embedded Swift. This is a compiler bug. Please file a bug with a small example of the bug. embedded_variadic_generic

The compiler puts it in the diagnostic group EmbeddedRestrictions.

Code
embedded_variadic_generic
Severity
error
Message
cannot specialize pack expression or statement in embedded Swift. This is a compiler bug. Please file a bug with a small example of the bug

Source: github.com. JSON record. This entry is a card. Help write this page.