Skip to content
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

Rustdoc not showing return type but showing return type lifetimes #52376

Closed
bjorn3 opened this issue Jul 14, 2018 · 2 comments
Closed

Rustdoc not showing return type but showing return type lifetimes #52376

bjorn3 opened this issue Jul 14, 2018 · 2 comments

Comments

@bjorn3
Copy link
Contributor

@bjorn3 bjorn3 commented Jul 14, 2018

https://doc.rust-lang.org/nightly/nightly-rustc/rustc_mir/interpret/struct.Memory.html#method.allocations

screenshot_2018-07-14 rustc_mir interpret memory - rust

@FanShupei
Copy link

@FanShupei FanShupei commented Jul 14, 2018

It seems the nightly rustdoc cannot handle impl Trait well. It works in argument position, not in return position.

I tried with a minimal examle. Create a new lib project, and write following in lib.rs, then cargo doc.

pub fn f(x: impl Copy) -> impl Copy {
    1
}

The output is weird. The return type vanishes.

pub fn f(x: impl Copy) -> 

rustdoc vesion: rustdoc 1.29.0-nightly (254f879 2018-07-13)
toolchain: nightly-x86_64-unknown-linux-gnu

@GuillaumeGomez
Copy link
Member

@GuillaumeGomez GuillaumeGomez commented Sep 6, 2018

Fixed in #53541.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
5 participants