-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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: display sugared return types for async functions #58203
Conversation
(rust_highfive has picked a reviewer for you, use r? to override) |
src/test/rustdoc/async-fn.rs
Outdated
|
||
#![feature(async_await, futures_api)] | ||
|
||
// @has async_fn/fn.foo.html '//pre[@class="rust fn"]' 'pub async fn foo() -> Option<S>' | ||
pub async fn foo() -> Option<S> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought that S
was a type parameter because the name was only one letter. Can you make it at least two letters so people won't struggle on it in the future (haha) please?
Please fix my comment and then we're good to go! |
@GuillaumeGomez Fixed, also added a test case that uses |
Thanks! @bors: r+ rollup |
📌 Commit 4deb595 has been approved by |
rustdoc: display sugared return types for async functions Fixes rust-lang#58027.
rustdoc: display sugared return types for async functions Fixes rust-lang#58027.
rustdoc: display sugared return types for async functions Fixes rust-lang#58027.
rustdoc: display sugared return types for async functions Fixes rust-lang#58027.
Rollup of 16 pull requests Successful merges: - #57259 (Update reference of rlibc crate to compiler-builtins crate) - #57740 (Use `to_ne_bytes` for converting IPv4Addr to octets) - #57926 (Tiny expansion to docs for `core::convert`.) - #58157 (Add Cargo.lock automatically adding message) - #58203 (rustdoc: display sugared return types for async functions) - #58243 (Add trait alias support in rustdoc) - #58262 (Add #[must_use] message to Fn* traits) - #58295 (std::sys::unix::stdio: explain why we do into_raw) - #58297 (Cleanup JS a bit) - #58317 (Some writing improvement, conciseness of intro) - #58324 (miri: give non-generic functions a stable address) - #58332 (operand-to-place copies should never be overlapping) - #58345 (When there are multiple filenames, print what got interpreted as filenames) - #58346 (rpath computation: explain why we pop()) - #58350 (Fix failing tidy (line endings on Windows)) - #58352 (miri value visitor: use `?` in macro) Failed merges: r? @ghost
Fixes #58027.