Skip to content

Documentation for [T; N] lacks "Methods from Deref<Target = [T]>" section #76124

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
LukasKalbertodt opened this issue Aug 30, 2020 · 4 comments
Closed
Labels
T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.

Comments

@LukasKalbertodt
Copy link
Member

For example, see that section for Vec. The section is missing from the array docs.

@LukasKalbertodt LukasKalbertodt added the T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. label Aug 30, 2020
@robojumper
Copy link
Contributor

[T; N] does not implement Deref. [T; N] coerces to [T] through Unsizing.

@LukasKalbertodt
Copy link
Member Author

Ohhh right. Would it make sense to include the methods of [T] anyway? I mean for most programmers, the only thing that matters is "what I can call with the dot method syntax", I guess?

@robojumper
Copy link
Contributor

I feel like it'd make sense. rustdoc currently doesn't seem to have any knowledge about the automatic Unsize implementations (empty Implementors list).

@ollie27
Copy link
Member

ollie27 commented Sep 2, 2020

Duplicate of #62992

@ollie27 ollie27 marked this as a duplicate of #62992 Sep 2, 2020
@ollie27 ollie27 closed this as completed Sep 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

3 participants