Skip to content

Commit 180e96f

Browse files
authored
SE-0458 "Opt-in Strict Memory Safety Checking" is implemented (#2711)
1 parent ace2d53 commit 180e96f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

proposals/0458-strict-memory-safety.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,9 @@
33
* Proposal: [SE-0458](0458-strict-memory-safety.md)
44
* Authors: [Doug Gregor](https://github.com/DougGregor)
55
* Review Manager: [John McCall](https://github.com/rjmccall)
6-
* Status: **Accepted**
6+
* Status: **Implemented (Swift 6.2)**
77
* Feature name: `StrictMemorySafety`
88
* Vision: [Optional Strict Memory Safety](https://github.com/swiftlang/swift-evolution/blob/main/visions/memory-safety.md)
9-
* Implementation: On main with experimental feature flags `AllowUnsafeAttribute` and `WarnUnsafe`
109
* Previous Revision: [1](https://github.com/swiftlang/swift-evolution/blob/f2cab4ddc3381d1dc7a970e813ed29e27b5ae43f/proposals/0458-strict-memory-safety.md) [2](https://github.com/swiftlang/swift-evolution/blob/9d180aea291c6b430bcc816ce12ef0174ec0237b/proposals/0458-strict-memory-safety.md)
1110
* Review: ([pitch](https://forums.swift.org/t/pitch-opt-in-strict-memory-safety-checking/76689)) ([review](https://forums.swift.org/t/se-0458-opt-in-strict-memory-safety-checking/77274)) ([first revision](https://forums.swift.org/t/se-0458-opt-in-strict-memory-safety-checking/77274/33)) ([second revision](https://forums.swift.org/t/se-0458-opt-in-strict-memory-safety-checking/77274/51)) ([acceptance](https://forums.swift.org/t/accepted-se-0458-opt-in-strict-memory-safety-checking/78116))
1211

@@ -421,7 +420,7 @@ A type has unsafe storage if:
421420

422421
#### Unsafe witnesses
423422

424-
When a type conforms to a given protocol, it must satisfy all of the requirements of that protocol. Part of this process is determining which declaration (called the *witness*) satisfies a given protocol requirement. If a particular witness is unsafe but the corresponding requirement is not safe, the compiler will produce a warning:
423+
When a type conforms to a given protocol, it must satisfy all of the requirements of that protocol. Part of this process is determining which declaration (called the *witness*) satisfies a given protocol requirement. If a particular witness is unsafe but the corresponding requirement is safe, the compiler will produce a warning:
425424

426425
```swift
427426
protocol P {

0 commit comments

Comments
 (0)