Update prelude files to increase destroy dependencies (#5848)

This is in anticipation of having `class` depending on the `Destroy`
interface, in order to automatically generate implementations of it.

I'm doing some sorting of imports in the prelude too, which I hope will
be uncontroversial; clang-format would do similar in C++...
This commit is contained in:
Jon Ross-Perkins
2025-07-24 23:57:25 +00:00
committed by GitHub
parent d599023c19
commit 8ea92b728c
16 changed files with 75 additions and 70 deletions
@@ -3,12 +3,14 @@
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
// INCLUDE-FILE: toolchain/testing/testdata/min_prelude/parts/bool.carbon
// INCLUDE-FILE: toolchain/testing/testdata/min_prelude/parts/destroy.carbon
// --- min_prelude/parts/optional.carbon
package Core library "prelude/parts/optional";
import library "prelude/parts/bool";
import library "prelude/parts/destroy";
class Optional(T:! type) {
fn None() -> Self {