Skip to content

Methods are not shown for pub type that is imported from other crate #103004

Open
@hellow554

Description

@hellow554

Location

I searched for FatalError in the rustc docs: https://doc.rust-lang.org/nightly/nightly-rustc/?search=fatalerror
The first two results are the interesting ones: rustc_errors::FatalError and rustc_span::fatal_error::FatalError

When opening the rustc_span::fatal_error::FatalError page, the associated method raise is shown:
grafik

When opening the rustc_errors::FatalError, the method won't show up:
grafik

This looks like a bug to me, because you can call the public method through the public export, so that method should either be documented or a page forward should happen to the original struct.

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.E-needs-testCall for participation: An issue has been fixed and does not reproduce, but no test has been added.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