You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/spec.md
+21Lines changed: 21 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4393,6 +4393,27 @@ Module-level inner attribute. Prevents the automatic import of `core:prelude`. U
4393
4393
// This module does not import core:prelude
4394
4394
```
4395
4395
4396
+
#### `#![TODO]`
4397
+
4398
+
Module-level inner attribute. Marks the entire module as TODO for `wado test`. The source must parse successfully (otherwise the attribute cannot be recognized), but compilation errors are tolerated. If compilation fails, the module is reported as a passing TODO test. If compilation succeeds, all test blocks are treated as `#[TODO]` tests: they must fail (trap or error). If any test passes, it becomes a test failure, signaling that the `#![TODO]` attribute should be removed.
4399
+
4400
+
```wado
4401
+
#![TODO]
4402
+
4403
+
test "not yet implemented" {
4404
+
panic("TODO");
4405
+
}
4406
+
```
4407
+
4408
+
#### `#![generated]`
4409
+
4410
+
Module-level inner attribute. Indicates that the module contains machine-generated code (e.g. from `wado-from-wit` or `gale`). Stored in the AST but not carried into TIR or later compilation stages. Reserved for future tooling use: language services may prohibit editing generated modules, and coverage tools may exclude them.
4411
+
4412
+
```wado
4413
+
#![generated]
4414
+
// This file was generated by wado-from-wit — do not edit manually.
4415
+
```
4416
+
4396
4417
#### `#![wasm_module("name")]`
4397
4418
4398
4419
Module-level inner attribute. All items in this module are compiled into a **separate Wasm core module** with the given name, rather than into the main GC core module.
0 commit comments