·
417 commits
to main
since this release
What changed
Features
Reporthas been split intoReport<C>andReport<[C]>to distinguish between a group of related errors and a single error. These errors can still be nested. (#5047)- Introduce a new
unstableflag, which is used to enable unstable features, these features are not covered by semver and may be modified or removed at any time. (#5181) - Reintroduce a new
IntoReporttrait, which is used to determine when a type can be converted to aReport. This allows the usage of errors more idiomatically in traits, such astype Error: IntoReport. (#6738)
Breaking Changes
- Rename
attach[_lazy]toattach_opaque[_with]andattach_printable[_lazy]toattach[_with]. (#7753) - Set the MSRV to 1.83 (#5333)
Extendis no longer implemented byReport<C>, instead it is implemented onReport<[C]>, either useFromorReport::expandto convert betweenReport<C>intoReport<[C]>. (#5047)extend_onehas been renamed topushand is only implemented onReport<[C]>. (#5047)bail!(report,)has been removed, one must now usebail!(report). This is in preparation for the unstablebail!macro that allows to constructReport<[C]>. (#5047)
Deprecations
Context: Usecore::error::Errorinstead (#5533)Result<T, C>: Usecore::result::Result<T, Report<C>>instead (#5533)report!, useIntoReport::into_reportinstead. (#6738)
Full Changelog: https://github.com/hashintel/hash/compare/[email protected]@0.6.0