Skip to content

Commit

Permalink
Use compile-time assertions to deny ZSTy DSTs
Browse files Browse the repository at this point in the history
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
  • Loading branch information
jswrenn authored and joshlf committed May 1, 2024
1 parent 075a6ca commit 03d13f9
Show file tree
Hide file tree
Showing 3 changed files with 437 additions and 52 deletions.
Loading

0 comments on commit 03d13f9

Please sign in to comment.