diff options
| author | Michael Howell <michael@notriddle.com> | 2024-12-13 10:47:02 -0700 |
|---|---|---|
| committer | Michael Howell <michael@notriddle.com> | 2024-12-13 10:47:20 -0700 |
| commit | f068d8b809e09f4c685bddeebfe63e736a02d473 (patch) | |
| tree | a0f9dfb5015704c5b912efeabc6e0ae546e3753b /tests/rustdoc-js/impl-trait-inlining.rs | |
| parent | 4847d6a9d07d4be9ba3196f6ad444af2d7bdde72 (diff) | |
| download | rust-f068d8b809e09f4c685bddeebfe63e736a02d473.tar.gz rust-f068d8b809e09f4c685bddeebfe63e736a02d473.zip | |
rustdoc-search: show `impl Trait` inline when unhighlighted
While normal generics can be skipped in this case, no-names need something to show here. Before: `TyCtxt, , Symbol -> bool` After: `TyCtxt, Into<DefId>, Symbol -> bool`
Diffstat (limited to 'tests/rustdoc-js/impl-trait-inlining.rs')
| -rw-r--r-- | tests/rustdoc-js/impl-trait-inlining.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/rustdoc-js/impl-trait-inlining.rs b/tests/rustdoc-js/impl-trait-inlining.rs new file mode 100644 index 00000000000..a6ca0dcbd8d --- /dev/null +++ b/tests/rustdoc-js/impl-trait-inlining.rs @@ -0,0 +1,11 @@ +#![crate_name="foo"] + +pub struct TyCtxt; +pub struct DefId; +pub struct Symbol; + +impl TyCtxt { + pub fn has_attr(self, _did: impl Into<DefId>, _attr: Symbol) -> bool { + unimplemented!(); + } +} |
