Commit Graph

3 Commits

Author SHA1 Message Date
Guillaume Gomez
41258df413 Move more rustdoc-html tests using --test into the right folder 2026-08-31 11:47:23 +02:00
Dnreikronos
3467b6fc20 Clean resolved signature for delegated functions in rustdoc
A delegation item (`reuse path::method`) has an unresolved HIR
signature: its inputs and return type are `InferDelegation` nodes that
clean to `_`. When the delegated function is async, the `async` header
over that inferred return type made `clean_fn_decl_with_params` call
`sugared_async_return_type` on a non-`impl Future` type, panicking with
"unexpected async fn return type".

Clean the resolved ty-side signature for delegation items instead, the
same way inlined items are cleaned. This avoids the ICE and renders the
real return type and `self` parameter rather than `-> _` / `self: _`.
2026-05-31 18:08:27 -03:00
Guillaume Gomez
a928f3352d Rename tests/rustdoc into tests/rustdoc-html 2026-01-07 14:23:30 +01:00