Skip to content

Commit 03d13f9

Browse files
jswrennjoshlf
authored andcommitted
Use compile-time assertions to deny ZSTy DSTs
Presently, we deny ZSTy DSTs in our APIs via panicking at runtime. However, the ZSTiness of a DST is statically detectable and can be denied instead at compile time. This PR replaces our ZSTy DST panics with compile-time assertions. Doing gives us the freedom later provide meaningful runtime semantics in such cases. Partially addresses #325 Closes #1149
1 parent 075a6ca commit 03d13f9

File tree

3 files changed

+437
-52
lines changed

3 files changed

+437
-52
lines changed

0 commit comments

Comments
 (0)