diff options
| author | Gus Wynn <guswynn@gmail.com> | 2021-09-11 12:39:33 -0700 |
|---|---|---|
| committer | Gus Wynn <guswynn@gmail.com> | 2021-09-11 12:39:33 -0700 |
| commit | ee1d2ea3b73d07d95d5c22ccd1e884e3674fcec6 (patch) | |
| tree | 79568f148d139eeeabde135d8760acf8fe4edf3d | |
| parent | 461a0f3da4acd6dfea31b9f12c1e14405b055438 (diff) | |
| download | rust-ee1d2ea3b73d07d95d5c22ccd1e884e3674fcec6.tar.gz rust-ee1d2ea3b73d07d95d5c22ccd1e884e3674fcec6.zip | |
fix doctests
| -rw-r--r-- | compiler/rustc_lint_defs/src/builtin.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/compiler/rustc_lint_defs/src/builtin.rs b/compiler/rustc_lint_defs/src/builtin.rs index 0463cb2b765..781ac6a14a4 100644 --- a/compiler/rustc_lint_defs/src/builtin.rs +++ b/compiler/rustc_lint_defs/src/builtin.rs @@ -327,14 +327,16 @@ declare_lint! { /// ### 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, |
