rust-lang / rust-lang/rust

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

Open
#123,996 0 comments 0 reactions 1 assignee View on GitHub

@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 f (local scenario, HIR-based cleaning): Fixed by: https://github.com/rust-lang/rust/pull/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,

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.