@_noLocks doesn't work with ~Copyable types #73582
Labels
attributes
Feature: Declaration and type attributes
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
@_noLocks
Feature → attributes: The @_noLocks attribute
noncopyable struct/enum
Feature → declarations: Noncopyable value type declarations
SILOptimizer
Area → compiler: SIL optimization passes
swift 6.0
unexpected error
Bug: Unexpected error
Description
A simple usage of
@_noLocks
fails to compile when using~Copyable
types. I am not sure if this is genuine issue or a bug in performance annotation implementation.Reproduction
Expected behavior
Code compiles and doesn't perform reference counting
Environment
It fails on both 5.10 and nightly snapshots
Additional information
No response
cc @eeckstein
The text was updated successfully, but these errors were encountered: