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

Doucment auto traits for `async fn` #65677

Aaron1011 opened this issue Oct 21, 2019 · 1 comment


Copy link

@Aaron1011 Aaron1011 commented Oct 21, 2019

Currently, Rustdoc documents auto-trait impls for types, displaying them along with manually written impls. However, there is currently no way of telling what auto traits are implemented by the impl Future type returned by an async fn.

I'm not quite sure what the best way of displaying this is. We need to make it clear to users that the auto trait impls apply to opaque return type - not to the function itself, or to the underlying type returned by the future (e.g. the u8 in async fn foo() -> u8).


This comment has been minimized.

Copy link

@nikomatsakis nikomatsakis commented Oct 22, 2019

It would be nice if whatever approach we use here also applies to impl Trait return types in general.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
3 participants
You can’t perform that action at this time.