We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 461a0f3 commit ee1d2eaCopy full SHA for ee1d2ea
compiler/rustc_lint_defs/src/builtin.rs
@@ -327,14 +327,16 @@ declare_lint! {
327
/// ### Example
328
///
329
/// ```rust
330
+ /// #![feature(must_not_suspend)]
331
+ ///
332
/// #[must_not_suspend]
333
/// struct SyncThing {}
334
- /// async fn yield() {}
335
+ /// async fn yield_now() {}
336
337
/// pub async fn uhoh() {
338
/// let guard = SyncThing {};
- /// yield().await;
339
+ /// yield_now().await;
340
/// }
341
/// ```
342
pub MUST_NOT_SUSPEND,
0 commit comments