cli: validate Copy content of source owning arrays
This commit is contained in:
1 parent
caf3b86e80
commit
cfbe01a16f
42 files changed
+608
-3
No files matched your search
@@ -403,6 +403,7 @@ A byte string or array used where a `slice<u8>` is expected is materialized in f
|
||||
- lossless widening by `as` (the verifier's own rule);
|
||||
- slice element types of `slice.copy`;
|
||||
- the element rules of channels and mutexes (no borrow, scope, task, shield or guard).
|
||||
- Copy content of `own_array<T>` and the repeated value of `own.array`; an invalid content type is E7005 at that annotation/value, with `constraint: Copy` and `type_constructor: own_array`. Known linear content in unused generic signatures and static contracts MUST reject; unknown type parameters are checked after substitution.
|
||||
|
||||
Source type annotations MUST satisfy the existing AIR type-position rules (spec 07 §8.3/§8.8), including nested constructors. An invalid constructor is E7005 at its annotation, with `position` and `type_constructor` fields. Known constructors in unused generic signatures and static function contracts MUST be checked; restrictions depending on a type parameter are checked after substitution. Graph-content properties and feature gates for otherwise correctly positioned types retain their verifier diagnostics.
|
||||
|
||||
|
||||
Reference in new issue
Block a user