Skip to content

Commit ee1d2ea

Browse files
committed
fix doctests
1 parent 461a0f3 commit ee1d2ea

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

compiler/rustc_lint_defs/src/builtin.rs

+4-2
Original file line numberDiff line numberDiff line change
@@ -327,14 +327,16 @@ declare_lint! {
327327
/// ### Example
328328
///
329329
/// ```rust
330+
/// #![feature(must_not_suspend)]
331+
///
330332
/// #[must_not_suspend]
331333
/// struct SyncThing {}
332334
///
333-
/// async fn yield() {}
335+
/// async fn yield_now() {}
334336
///
335337
/// pub async fn uhoh() {
336338
/// let guard = SyncThing {};
337-
/// yield().await;
339+
/// yield_now().await;
338340
/// }
339341
/// ```
340342
pub MUST_NOT_SUSPEND,

0 commit comments

Comments
 (0)