Open
Description
It would be very useful to store a core::panic::Location
inside the DataError
. Currently panicking is much more ergonomic than using DataError
, because with DataError
you only get the location where the error is unwrapped and have to chase down the error message, which often is not a pure literal.
This is currently blocked on rust-lang/rust#76156, as our error constructors are const
and core::panic::Location::caller()
is not yet.