Skip to content

Commit fedb840

Browse files
committed
Ignore some doctests that are incompatible with current --stage=0
These changes can be reverted during the next bootstrap bump.
1 parent 2ec1032 commit fedb840

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

compiler/rustc_lint/src/if_let_rescope.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ declare_lint! {
2323
///
2424
/// ### Example
2525
///
26-
/// ```rust,edition2021
26+
#[cfg_attr(bootstrap, doc = "```ignore")]
27+
#[cfg_attr(not(bootstrap), doc = "```rust,edition2021")]
28+
// ``` // Trick tidy's backtick count. Remove on bootstrap bump. #[cfg(not(bootstrap))]
2729
/// #![feature(if_let_rescope)]
2830
/// #![warn(if_let_rescope)]
2931
/// #![allow(unused_variables)]

compiler/rustc_lint_defs/src/builtin.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -1870,7 +1870,9 @@ declare_lint! {
18701870
///
18711871
/// ### Example
18721872
///
1873-
/// ```rust,compile_fail
1873+
#[cfg_attr(bootstrap, doc = "```ignore")]
1874+
#[cfg_attr(not(bootstrap), doc = "```rust,compile_fail")]
1875+
// ``` // Trick tidy's backtick count. Remove on bootstrap bump. #[cfg(not(bootstrap))]
18741876
/// #![deny(elided_named_lifetimes)]
18751877
/// struct Foo;
18761878
/// impl Foo {

0 commit comments

Comments
 (0)