mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 20:51:16 +01:00
Drop fn destroy support (#6136)
`fn destroy` is being removed per decision on #6124. It seems like the relevant decision will result in no more keyword-based function names, so this is removing all related support.
This commit is contained in:
@@ -12,8 +12,8 @@ package Core library "prelude/parts/destroy";
|
||||
import library "prelude/parts/bool";
|
||||
import library "prelude/parts/int_literal";
|
||||
|
||||
// Object destruction, including running `fn destroy()`. Note this is distinct
|
||||
// from memory deallocation.
|
||||
// Destroys objects. Note this is distinct from memory deallocation.
|
||||
// TODO: Switch to `Destructor`+`Destroy` model.
|
||||
interface Destroy {
|
||||
fn Op[addr self: Self*]();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user