What changed
Features
Report
has 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
unstable
flag, 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
IntoReport
trait, 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)
Extend
is no longer implemented byReport<C>
, instead it is implemented onReport<[C]>
, either useFrom
orReport::expand
to convert betweenReport<C>
intoReport<[C]>
. (#5047)extend_one
has been renamed topush
and 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::Error
instead (#5533)Result<T, C>
: Usecore::result::Result<T, Report<C>>
instead (#5533)report!
, useIntoReport::into_report
instead. (#6738)
Full Changelog: https://github.com/hashintel/hash/compare/error-stack@0.5.0...error-stack@0.6.0