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`
This commit is contained in:
parent
4847d6a9d0
commit
f068d8b809
3 changed files with 42 additions and 1 deletions
25
tests/rustdoc-js/impl-trait-inlining.js
Normal file
25
tests/rustdoc-js/impl-trait-inlining.js
Normal file
|
@ -0,0 +1,25 @@
|
|||
// exact-check
|
||||
// ignore-order
|
||||
|
||||
const EXPECTED = [
|
||||
{
|
||||
'query': 'tyctxt, symbol -> bool',
|
||||
'others': [
|
||||
{
|
||||
'path': 'foo::TyCtxt',
|
||||
'name': 'has_attr',
|
||||
'displayType': "`TyCtxt`, Into<DefId>, `Symbol` -> `bool`",
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
'query': 'tyctxt, into<defid>, symbol -> bool',
|
||||
'others': [
|
||||
{
|
||||
'path': 'foo::TyCtxt',
|
||||
'name': 'has_attr',
|
||||
'displayType': "`TyCtxt`, `Into`<`DefId`>, `Symbol` -> `bool`",
|
||||
},
|
||||
],
|
||||
},
|
||||
];
|
Loading…
Add table
Add a link
Reference in a new issue