diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2025-06-24 11:20:09 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-24 11:20:09 +0200 |
| commit | 010af6a7145152efac6fa163f23c914a554a72e7 (patch) | |
| tree | e73db676d11e8aaafb81d29cf38f57f3af89704f /compiler/rustc_attr_data_structures/src | |
| parent | 7375c441cec4c87ed88b36dd0edbd5b7240a05e9 (diff) | |
| parent | 7c0ef44d4f7b43ba79c8a45ff357b4c8c3f94881 (diff) | |
| download | rust-010af6a7145152efac6fa163f23c914a554a72e7.tar.gz rust-010af6a7145152efac6fa163f23c914a554a72e7.zip | |
Rollup merge of #142932 - Enselic:keep-empty-generic-params, r=aDotInTheVoid
rustdoc-json: Keep empty generic args if parenthesized
Because in the case of for example
pub fn my_fn3(f: impl FnMut()) {}
we want to keep `()` even if it is empty since that matches e.g. Rust syntax requirements.
This is an amendment to https://github.com/rust-lang/rust/pull/142502, so:
r? ``@aDotInTheVoid``
cc ``@nnethercote``
cc https://github.com/cargo-public-api/cargo-public-api/pull/798
Diffstat (limited to 'compiler/rustc_attr_data_structures/src')
0 files changed, 0 insertions, 0 deletions
