Skip to content

rustdoc: Fully support RTN (now missing: support for inlined cross-crate re-exports) #123996

Open
@fmease

Description

@fmease

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 f (local scenario, HIR-based cleaning): Fixed by: #137956

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,

Metadata

Metadata

Labels

A-cross-crate-reexportsArea: Documentation that has been re-exported from a different crateC-bugCategory: This is a bug.F-return_type_notation`#[feature(return_type_notation)]`T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions