Skip to content

Tracking caller on DataError construction #4048

Open
@robertbastian

Description

@robertbastian

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-data-infraComponent: provider, datagen, fallback, adaptersblockedA dependency must be resolved before this is actionablegood first issueGood for newcomers

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions