rust-lang / rust-lang/rust

rustdoc incorrectly prints APIT in `AliasTy::new`

Open
#138,604 1 comment 0 reactions 1 assignee View on GitHub

@fmease is already working on this.

Since Mar 17, 2025.

A-cross-crate-reexports C-bug F-associated_type_bounds S-has-mcve T-rustdoc
Dominant language
Rust
Stars
119k
Forks
16.1k
PR merge metrics
PR metrics pending

Description

https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/ty/type.AliasTy.html#method.new

currently prints the method signature as

pub fn new(
    interner: I,
    def_id: <I as Interner>::DefId,
    args: impl IntoIterator>,
) -> AliasTy<I>
where
    <impl IntoIterator as IntoIterator>::Item: Into<<I as Interner>::GenericArg>,

I cannot reproduce this outside of the nightly compiler docs.

Image

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.