Skip to content

Rust Doc accidentally elides lifetimes #36067

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
CryZe opened this issue Aug 28, 2016 · 1 comment
Closed

Rust Doc accidentally elides lifetimes #36067

CryZe opened this issue Aug 28, 2016 · 1 comment

Comments

@CryZe
Copy link
Contributor

CryZe commented Aug 28, 2016

For some reason the lifetime 'a is missing in the docs for std::slice::from_raw_parts and it's probably missing in more places. It shows that it's returning a &'a [T] but the lifetime is completely missing from the rest of the function signature even though it's clearly there in the source code.

std::slice::from_raw_parts

Signature in Source Code:

pub unsafe fn from_raw_parts<'a, T>(p: *const T, len: usize) -> &'a [T]

Documentation:

pub unsafe fn from_raw_parts<T>(p: *const T, len: usize) -> &'a [T]
@bluss
Copy link
Member

bluss commented Aug 29, 2016

Thank you! This is already present as issue #14462

@bluss bluss closed this as completed Aug 29, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants