Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[error] Implement std::error::Error on errors
While we're here, also relax `Dispaly for AlignmentError<Src, Dst>` to permit `Dst: ?Sized` in exchange for `Dst: KnownLayout`. This is an important relaxation since our APIs permit performing conversions into unsized destination types with runtime alignment checking. Also make all errors `Send + Sync` regardless of `Dst`, which only exists at the type level, but is never instantiated. Finally, make `Display`'s verbosity conditional on `debug_assertions`. Makes progress on #1297 Co-authored-by: John Wrenn <jswrenn@amazon.com>
- Loading branch information