🆕🦀 Yet another version of #rustlang, Rust 1.67.0, has just been released!

This one is a relatively small release. So, short release thread:

🧵 1/6

A must_use attribute on async functions now does what you expect.

#[must_use]
async fn hey() -> Thing { … }

Now, #[must_use] applies to `Thing`, instead of to the `impl Future<Output=Thing>` (which wasn't very useful).

2/6

Follow

@Mara Do I understand correctly that this means "you do not have to poll this future to completion, but if you do you must use the result"?

Sign in to participate in the conversation
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.