Skip to content

rustdoc drops impl Foreign<Local> for Foreign #82465

Closed

Description

I tried this code:

use std::convert::AsRef;
pub struct Gus;

impl AsRef<str> for Gus {
    fn as_ref(&self) -> &str {
        todo!()
    }
}

impl AsRef<Gus> for str {
    fn as_ref(&self) -> &Gus {
        todo!()
    }
}

with cargo doc I get:
image

with cargo +nightly I get:
image

Meta

stable: rustc 1.50.0 (cb75ad5db 2021-02-10)
nightly: rustc 1.52.0-nightly (d1206f950 2021-02-15) but this also affects whatever nightly docs.rs is on (https://docs.rs/camino/1.0.0/camino/struct.Utf8Path.html#impl-AsRef%3Cstr%3E is missing the for str impl

(separately, I hit rust-lang/cargo#6783 when testing this, where cargo +stable doc --open still used the nightly generated code)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

C-bugCategory: This is a bug.P-highHigh priorityT-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.regression-from-stable-to-nightlyPerformance or correctness regression from stable to nightly.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions