rustdoc: Fully support RTN (now missing: support for inlined cross-crate re-exports)
Open
@compiler-errors is already working on this.
Since Apr 16, 2024.
A-cross-crate-reexports
C-bug
F-return_type_notation
T-rustdoc
- Dominant language
- Rust
- Stars
- 119k
- Forks
- 16.1k
- PR merge metrics
- PR metrics pending
Description
This is blocked by T-lang's decision on the final syntax of RTN! Unblocked (IINM)
Source:
#![feature(return_type_notation)]
pub fn f<T: Trait<f(): Copy>>() {}
pub trait Trait { fn f() -> impl Clone; }
Current rendered output of Fixed by: https://github.com/rust-lang/rust/pull/137956f (local scenario, HIR-based cleaning):
pub fn f<T: Trait<f: Copy>>()
Current rendered output of f (inlined cross-crate re-export scenario, rustc_middle::ty-based cleaning):
pub fn f<T>()
where
T: Trait,
impl Clone: Copy,
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.