Display original pattern in rustdoc.
This commit displays the original pattern in generated documentation for async functions rather than the synthesized pattern.
This commit is contained in:
parent
44ddbc5565
commit
09c707f0ca
1 changed files with 1 additions and 1 deletions
|
|
@ -2017,7 +2017,7 @@ impl<'a> Clean<Arguments> for (&'a [hir::Ty], hir::BodyId) {
|
|||
Arguments {
|
||||
values: self.0.iter().enumerate().map(|(i, ty)| {
|
||||
Argument {
|
||||
name: name_from_pat(&body.arguments[i].pat),
|
||||
name: name_from_pat(&body.arguments[i].original_pat()),
|
||||
type_: ty.clean(cx),
|
||||
}
|
||||
}).collect()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue