File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -244,10 +244,9 @@ Notes:
244
244
* Validation of ` valtype ` requires the ` typeidx ` to refer to a ` defvaltype ` .
245
245
* Validation of ` own ` and ` borrow ` requires the ` typeidx ` to refer to a
246
246
resource type.
247
- * Validation only allows ` borrow ` to be used inside the ` param ` of a ` functype ` .
248
- (This is likely to change in a future PR, converting ` functype ` into a
249
- compound type constructor analogous to ` moduletype ` and ` componenttype ` and
250
- using scoping to enforce this constraint instead.)
247
+ * Validation of ` functype ` rejects any transitive use of ` borrow ` in a
248
+ ` result ` type. Similarly, validation of components and component types
249
+ rejects any transitive use of ` borrow ` in an exported value type.
251
250
* Validation of ` resourcetype ` requires the destructor (if present) to have
252
251
type ` [i32] -> [] ` .
253
252
* Validation of ` instancedecl ` (currently) only allows the ` type ` and
You can’t perform that action at this time.
0 commit comments