Skip to content

Commit 62c7143

Browse files
Don't run doctest because it doesn't compile on stage1
1 parent be50f89 commit 62c7143

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

compiler/rustc_lint_defs/src/builtin.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5586,12 +5586,13 @@ declare_lint! {
55865586
///
55875587
/// ### Example
55885588
///
5589-
/// ```rust,no_run
5589+
#[cfg_attr(bootstrap, doc = "```rust,compile_fail")]
5590+
#[cfg_attr(not(bootstrap), doc = "```rust,no_run")]
55905591
/// fn main() {
55915592
/// let x = panic!();
55925593
/// x.clone();
55935594
/// }
5594-
/// ```
5595+
#[doc = "```"]
55955596
///
55965597
/// {{produces}}
55975598
///

0 commit comments

Comments
 (0)