Skip to content

Migrate away from static_assertions

It might be nice to replace our usage of static_assertions with a simpler pattern.

Since around Rust 1.57, assert! has been usable in a const context, so instead of saying static_assertions::const_assert!(foo), we can just say const _: () = assert!(foo).

In addition to removing a dependency, this should make the error messages nicer.