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
Assignees
Labels
A-impl-trait Area: `impl Trait`. Universally / existentially quantified anonymous types with static dispatch. C-bug Category: This is a bug. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.

Comments

@bjorn3
Copy link
Member

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

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

@csmoe csmoe added the T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. label Jul 15, 2018
@QuietMisdreavus QuietMisdreavus added A-impl-trait Area: `impl Trait`. Universally / existentially quantified anonymous types with static dispatch. C-bug Category: This is a bug. labels Aug 9, 2018
@GuillaumeGomez GuillaumeGomez self-assigned this Aug 20, 2018
@GuillaumeGomez
Copy link
Member

Fixed in #53541.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-impl-trait Area: `impl Trait`. Universally / existentially quantified anonymous types with static dispatch. C-bug Category: This is a bug. 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

5 participants