Skip to content

Commit

Permalink
fix doctests
Browse files Browse the repository at this point in the history
  • Loading branch information
guswynn committed Sep 11, 2021
1 parent 461a0f3 commit ee1d2ea
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions compiler/rustc_lint_defs/src/builtin.rs
Expand Up @@ -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,
Expand Down

0 comments on commit ee1d2ea

Please sign in to comment.