diff options
| author | Alan Egerton <eggyal@gmail.com> | 2021-04-04 22:42:19 +0100 |
|---|---|---|
| committer | Alan Egerton <eggyal@gmail.com> | 2021-04-04 22:45:17 +0100 |
| commit | 82b2863a204e727a37a2d23efd738387d2fbab70 (patch) | |
| tree | 16511f450f71073deb009c6bb8c716dc9f70a8d7 /src/test/rustdoc | |
| parent | 88e7862dd05ff939cd498eb0ad2f3383bad33171 (diff) | |
| download | rust-82b2863a204e727a37a2d23efd738387d2fbab70.tar.gz rust-82b2863a204e727a37a2d23efd738387d2fbab70.zip | |
Render destructured struct function param names as underscore.
Fixes #83852 r? `@GuillaumeGomez`
Diffstat (limited to 'src/test/rustdoc')
| -rw-r--r-- | src/test/rustdoc/issue-83852.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/test/rustdoc/issue-83852.rs b/src/test/rustdoc/issue-83852.rs new file mode 100644 index 00000000000..3c0369e3d34 --- /dev/null +++ b/src/test/rustdoc/issue-83852.rs @@ -0,0 +1,10 @@ +#![crate_name = "foo"] + +struct BodyId { + hir_id: usize, +} + +// @has 'foo/fn.body_owner.html' '//*[@class="rust fn"]' 'pub fn body_owner(_: BodyId)' +pub fn body_owner(BodyId { hir_id }: BodyId) { + // ... +} |
