Skip to content

Consider plumbing a std::source_location into methods that panic #327

Open
@danakj

Description

@danakj
  • Maybe just key ones like Option::unwrap and Result::expect etc?
  • Just in debug builds or behind a define of some sort?

Without that, panics show as being inside the Option/Result class and you need a stack trace to know more. But with the source location coming from there, you'd get to see the caller outside the class.

Metadata

Metadata

Assignees

No one assigned

    Labels

    designDesign of the library systems as a whole, such as concepts

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions