Skip to content

Add core::panic::Location::{end_line,end_column}? #73554

Open
@anp

Description

Method chains no longer share a single span, which makes the location reported by Location::caller() much more useful when chaining unwraps. The next step to improve their fidelity will be to allow Location to encode the "end span" of a call, and to expose that to users somehow. Probably in the Debug/Display impls to start.

Metadata

Assignees

No one assigned

    Labels

    C-feature-requestCategory: A feature request, i.e: not implemented / a PR.T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions