swift
541d0d1a - Disallow consuming `self` in a noncopyable `deinit` again.

Commit
1 year ago
Disallow consuming `self` in a noncopyable `deinit` again. The changes to allow for partial consumption unintentionally also allowed for `self` to be consumed as a whole during `deinit`, which we don't yet want to allow because it could lead to accidental "resurrection" and/or accidental infinite recursion if the consuming method lets `deinit` be implicitly run again. This makes it an error again. The experimental feature `ConsumeSelfInDeinit` will allow it for test coverage or experimentation purposes. rdar://132761460
Author
Committer
Parents
Loading