Skip to content

Commit 9dc26ab

Browse files
committed
permit repr(transparent) newtypes
1 parent 2123188 commit 9dc26ab

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

text/3838-repr-scalable.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,9 +157,14 @@ Scalable vector types have some further restrictions due to limitations of the
157157
codegen backend:
158158

159159
- Cannot be stored in compound types (structs, enums, etc)
160-
- Including coroutines, so these types cannot be held across
161-
an await boundary in async functions.
160+
161+
- Including coroutines, so these types cannot be held across an await
162+
boundary in async functions
163+
164+
- `repr(transparent)` newtypes could be permitted with scalable vectors
165+
162166
- Cannot be used in arrays
167+
163168
- Cannot be the type of a static variable.
164169

165170
Some of these limitations may be able to be lifted in future depending on what

0 commit comments

Comments
 (0)