Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
JanBeh opened this issue Mar 30, 2022 · 2 comments
Closed

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

JanBeh opened this issue Mar 30, 2022 · 2 comments
Labels
C-bug Category: This is a bug.

Comments

@JanBeh
Copy link
Contributor

JanBeh commented Mar 30, 2022

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.

@JanBeh JanBeh added the C-bug Category: This is a bug. label Mar 30, 2022
@compiler-errors
Copy link
Member

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

@GuillaumeGomez
Copy link
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
Labels
C-bug Category: This is a bug.
Projects
None yet
Development

No branches or pull requests

3 participants