cli: add explicit source generics and Copy option/result
Specialize explicit function, struct and enum templates into deterministic ordinary AIR, with structural constraints and bounded expansion. Preserve source provenance and readable names in specialization diagnostics. Add Copy-only std.option/std.result and vertical specification, grammar, Quick Reference, RFC and source coverage updates. Keep linear aggregates and existing unsupported source from-returns explicit follow-up work. Repair the finite-layout check through arrays under the existing E1003 contract, with positive and rejected source/AIR fixtures. Validation: build, unit tests, 640 conformance cases, 82/82 source constructs, 32-seed generic task stress, agent-reference, formatting, hosted smoke, 20 generic and 36 package CLI checks. Record three-encoding documentation budgets; AIR reference is unchanged.
This commit is contained in:
93 files changed
+1587
-75
No files matched your search
@@ -20,6 +20,12 @@ TESTS = os.path.join(ROOT, "tests", "conformance", "source")
|
||||
|
||||
# (area, construct, regex, needs a reject test)
|
||||
CHECKLIST = [
|
||||
("generics", "generic function declaration", r"fn \w+<", True),
|
||||
("generics", "generic struct/enum declaration", r"(?:struct|enum) \w+<", True),
|
||||
("generics", "explicit function/worker application", r"[a-z]\w*::<", True),
|
||||
("generics", "applied generic type", r": (?:[a-z]\w*\.)*[A-Z]\w*<", True),
|
||||
("generics", "generic constructor/pattern", r"[A-Z]\w*::<", True),
|
||||
("generics", "structural property constraint", r"[A-Z]\w*: (?:Copy|Send|Share|Freeze|Local)", True),
|
||||
("modules", "package module import", r"^import app\.", True),
|
||||
("modules", "qualified package call", r"app\.\w+\.[a-z]\w*\(", True),
|
||||
("modules", "qualified struct literal", r"app\.\w+\.[A-Z]\w* \{", True),
|
||||
|
||||
Reference in new issue
Block a user