diff options
| author | Dylan DPC <dylan.dpc@gmail.com> | 2021-04-05 13:03:43 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-05 13:03:43 +0200 |
| commit | 98e7a4e7844f5099ec7e15228a42440931072e53 (patch) | |
| tree | 39880e0afb289ba2fc46a4607acdf2abc2c93913 /src/test/rustdoc | |
| parent | 445aa40153b305cc2017c2ca05010193c2e7b5be (diff) | |
| parent | 14fac683289dcd53625544edd3372e5fc737c7ed (diff) | |
| download | rust-98e7a4e7844f5099ec7e15228a42440931072e53.tar.gz rust-98e7a4e7844f5099ec7e15228a42440931072e53.zip | |
Rollup merge of #83863 - eggyal:issue-83852, r=jyn514
Render destructured struct function param names as underscore Fixes #83852 r? ````@GuillaumeGomez````
Diffstat (limited to 'src/test/rustdoc')
| -rw-r--r-- | src/test/rustdoc/struct-arg-pattern.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/test/rustdoc/struct-arg-pattern.rs b/src/test/rustdoc/struct-arg-pattern.rs new file mode 100644 index 00000000000..3c0369e3d34 --- /dev/null +++ b/src/test/rustdoc/struct-arg-pattern.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) { + // ... +} |
