]> git.lizzy.rs Git - rust.git/commitdiff
fix doctests
authorGus Wynn <guswynn@gmail.com>
Sat, 11 Sep 2021 19:39:33 +0000 (12:39 -0700)
committerGus Wynn <guswynn@gmail.com>
Sat, 11 Sep 2021 19:39:33 +0000 (12:39 -0700)
compiler/rustc_lint_defs/src/builtin.rs

index 0463cb2b7655310be2d7ad0c999c6cff50901cfb..781ac6a14a4b32a7b8490a4229fd0b8a07681c70 100644 (file)
     /// ### Example
     ///
     /// ```rust
+    /// #![feature(must_not_suspend)]
+    ///
     /// #[must_not_suspend]
     /// struct SyncThing {}
     ///
-    /// async fn yield() {}
+    /// async fn yield_now() {}
     ///
     /// pub async fn uhoh() {
     ///     let guard = SyncThing {};
-    ///     yield().await;
+    ///     yield_now().await;
     /// }
     /// ```
     pub MUST_NOT_SUSPEND,