Skip to content

rustdoc doesn't render argument names of reexported FFI functions #21917

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
huonw opened this issue Feb 4, 2015 · 1 comment
Closed

rustdoc doesn't render argument names of reexported FFI functions #21917

huonw opened this issue Feb 4, 2015 · 1 comment
Labels
T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.

Comments

@huonw
Copy link
Member

huonw commented Feb 4, 2015

E.g. http://doc.rust-lang.org/nightly/std/intrinsics/fn.volatile_set_memory.html

 pub unsafe fn volatile_set_memory<T>(*mut T, u8, usize)

vs. http://doc.rust-lang.org/nightly/core/intrinsics/fn.volatile_set_memory.html

pub unsafe fn volatile_set_memory<T>(dst: *mut T, val: u8, count: usize)

The docs refer to parameters by name, so this functionality is useful.

@huonw huonw added the T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. label Feb 4, 2015
@tomjakubowski
Copy link
Contributor

I think it's a metadata problem; encode_method_argument_names isn't ever called from encode_info_for_foreign_item.

@bors bors closed this as completed in e43c478 Feb 8, 2015
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

2 participants