Skip to content

must_use Option::map* #71484

Open
Open
@Mark-Simulacrum

Description

@Mark-Simulacrum

We were discussing #71368 in the language team meeting today, and it came up that Option::map should probably be marked must_use. There are technically valid use cases which do not require using the result (i.e. side-effecting uses), but these are so rare that it seems unlikely that we need to worry about them for the purposes of such a lint.

(Probably other combinators on Option should also be checked).

Metadata

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