Skip to content

consider removing allow(unused_mut) from core and std doctests #139604

Open
@lolbinarycat

Description

@lolbinarycat

A lot of new rust users get confused about the relationship between mut bindings and &mut, and the doctests don't really help with this, with core alone having 21 doctests emitting this lint. most of these are mut bindings that hold a mutable reference.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsT-libsRelevant to the library 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