hir::Body
's documentation incorrectly suggests it doesn't contain parmaeter info for closures
#127031
Labels
A-docs
Area: Documentation for any part of the project, including the compiler, standard library, and tools
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
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.
The text was updated successfully, but these errors were encountered: