Skip to content

Rustdoc links to std library types can bypass the facade #22083

Open
@tomjakubowski

Description

@tomjakubowski

As an example, generate documentation for this:

#![crate_type="lib"]

pub trait Trait { }

impl<T> Trait for Vec<T> { }

On the docs for the Trait trait, there will be an Implementors section like this:

Note that the Vec link goes to docs for the collections crate and not to docs for std. Since the 1.0 release will not host documentation for crates behind the facade, this will lead to broken documentation links for third-party crates.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-cross-crate-reexportsArea: Documentation that has been re-exported from a different crateC-bugCategory: This is a bug.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