Skip to content

Lifetime scope note messages have off-by-one column numbers. #41938

Closed
@eddyb

Description

@eddyb

The explain_span function used for them doesn't convert lo.col to be 1-based.

Noticed because in #41914 some messages ended up looking like this:

note: the anonymous lifetime #2 defined on the function body at 15:0...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions