Skip to content

Rustdoc does not show blanket impls with negative polarity #80466

Open
@jyn514

Description

@jyn514

I tried this code:

#![feature(negative_impls)]
pub struct S {}

pub trait Trait {}
impl<T> !Trait for T {}

I expected to see this happen: Rustdoc shows impl !Trait for S on the documentation for S, the same way it shows impl<T> Any for T.

Instead, this happened: Rustdoc does not show the blanket implementation.

Meta

rustdoc --version: rustdoc 1.50.0-nightly (0edce6f 2020-12-24)

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.F-negative_impls#![feature(negative_impls)]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