1
Fork 0

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:
Michael Howell 2024-12-13 10:47:02 -07:00
parent 4847d6a9d0
commit f068d8b809
3 changed files with 42 additions and 1 deletions

View file

@ -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!();
}
}