mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
This attribute forces programmers to acknowledge every copy that is required to happen in the body of the function. Only those copies that make sense according to Swift's ownership rules should be "required". The way this is implemented as of now is to flag each non-explicit copy in a function, coming from SILGen, as an error through PerformanceDiagnostics.