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.
It would be very useful to store a
core::panic::Locationinside theDataError. Currently panicking is much more ergonomic than usingDataError, because withDataErroryou 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
constandcore::panic::Location::caller()is not yet.