E0006: closure and canonical_header fields
feature_not_declared gains closure (the feature and its dependencies) and canonical_header (the complete sorted header with everything the body needed so far); missing_dependency gains canonical_header. The code and reason are unchanged (spec 07 §8.7): a generic repair aid, the only diagnostic strong agents hit in the native smoke.
This commit is contained in:
1 parent
e83b71d82b
commit
5b7ecf9ffd
3 files changed
+56
-2
No files matched your search
@@ -66,11 +66,13 @@ Feature problems are reported as `E0006` (`module.unsupported_feature`) with a `
|
||||
|---|---|---|
|
||||
| `unknown_feature` | name not in this registry | `feature` |
|
||||
| `unsupported_feature` | registered but reserved, or not implemented by this toolchain | `feature` |
|
||||
| `missing_dependency` | a dependency of a declared feature is not declared | `feature`, `requires` |
|
||||
| `missing_dependency` | a dependency of a declared feature is not declared | `feature`, `requires`, `canonical_header` |
|
||||
| `duplicate_feature` | the same name is declared twice | `feature` |
|
||||
| `feature_not_declared` | the body uses a construct of an undeclared feature | `feature`, `construct` |
|
||||
| `feature_not_declared` | the body uses a construct of an undeclared feature | `feature`, `construct`, `closure`, `canonical_header` |
|
||||
| `reserved_type` | the body uses a reserved type such as `f32` (spec 07 §8.4) | `type` |
|
||||
|
||||
`canonical_header` is the complete header line the module needs, sorted, with the full dependency closure. Replacing the module's `features` line with it repairs every `missing_dependency` and `feature_not_declared` reported so far. `closure` lists the named feature and everything it depends on.
|
||||
|
||||
## Discovery
|
||||
|
||||
`aji features` prints the toolchain's AIR format, language version and supported features as one JSON object, e.g. `{"air":0,"lang":"0.1","features":[]}`. Agents query it before generating AIR.
|
||||
Reference in new issue
Block a user