Skip to content

hir::Body's documentation incorrectly suggests it doesn't contain parmaeter info for closures #127031

Open
@Centri3

Description

@Centri3

Location

https://doc.rust-lang.org/nightly/nightly-rustc/rustc_hir/hir/struct.Body.html

Summary

Noticed this in rust-lang/rust-clippy#12981. The documentation says "a function" which I assume was meant to imply both a function/method call and closure while explicitly excluding constant values, yet closures weren't explicitly included which can lead to confusion.

Metadata

Metadata

Assignees

No one assigned

    Labels

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