Rust: move to Label<T> and mark unsafety of from_untyped

This commit is contained in:
Paolo Tranquilli
2024-09-13 17:17:19 +02:00
parent faf1eeeb0d
commit 8f93f5e34b
6 changed files with 1889 additions and 2981 deletions

View File

@@ -20,7 +20,7 @@ def _get_type(t: str) -> str:
case "int":
return "usize"
case _ if t[0].isupper():
return f"{t}TrapLabel"
return f"trap::Label<{t}>"
case "boolean":
assert False, "boolean unsupported"
case _: