Skip to content

Ambiguous documentation of line!() and column!() #46997

Closed
@dtolnay

Description

@dtolnay

The documentation of the line!() and column!() macros says:

The returned line is not the invocation of the `line!()` macro itself, but rather the first macro invocation leading up to the invocation of the `line!()` macro.

I find "not the invocation of the `line!` macro itself" a bit misleading, because it is totally possible and expected for the return value to be the line of the invocation of the line macro itself when not being called from another macro. It may be clearer as "not necessarily the line of the `line!` invocation itself".

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsC-enhancementCategory: An issue proposing an enhancement or a PR with one.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions