Skip to content

Missing impl blocks when rustdoc inlines a type and -Zforce-unstable-if-unmarked is turned on #106421

Closed
@notriddle

Description

@notriddle

Compare the following pages:

The issue can also be reproduced by setting up two crates, one with a type that has an inherent impl:

pub struct FatalError;
impl FatalError {
    pub fn raise(self) -> ! { loop {} }
}

And the other re-exports it:

pub use parent::FatalError;

And compile them with, specifically, the following CLI parameters:

RUSTFLAGS=-Zforce-unstable-if-unmarked cargo +dev doc

I expect raise to show up both in the original crate, and in the crate that re-exports it. Instead, it only shows blanket and auto trait impls.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-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