Skip to content

std::ops::Deref's documentation broken on doc.rust-lang.org #95480

@JanBeh

Description

@JanBeh
Contributor

I noticed that documentation of std::ops::Deref is broken here:

https://doc.rust-lang.org/std/ops/trait.Deref.html

After the line

impl<T: ?Sized> Deref for RwLockWriteGuard<'_, T> [src]

all subsequent [src] links are missing. And there is also a line reading

impl<B: ?Sized + ToOwned> Deref for Cow<'_, B> where
    B::Owned: ~constBorrow<B>, 

which seems wrong (to me).

I'm unsure if this is a matter of rustfmt or doc.rust-lang.org.

Activity

compiler-errors

compiler-errors commented on Mar 30, 2022

@compiler-errors
Member

The ~constBorrow typo is fixed on nightly -- the duplicated Deref impl entries idk about though.

GuillaumeGomez

GuillaumeGomez commented on Apr 9, 2022

@GuillaumeGomez
Member

It's now fixed on beta as well. For the missing source links, it's not really a bug but more like a current rustdoc limitation. The issue about this is #86632. Closing this issue then.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @GuillaumeGomez@compiler-errors@JanBeh

        Issue actions

          std::ops::Deref's documentation broken on doc.rust-lang.org · Issue #95480 · rust-lang/rust