File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,8 @@ declare_lint! {
23
23
///
24
24
/// ### Example
25
25
///
26
- /// ```rust,edition2021
26
+ #[ cfg_attr( bootstrap, doc = "```ignore" ) ]
27
+ #[ cfg_attr( not( bootstrap) , doc = "```rust,edition2021" ) ]
27
28
/// #![feature(if_let_rescope)]
28
29
/// #![warn(if_let_rescope)]
29
30
/// #![allow(unused_variables)]
@@ -54,7 +55,7 @@ declare_lint! {
54
55
/// // do something else
55
56
/// }
56
57
/// }
57
- /// ```
58
+ # [ doc = " ```" ] // #[cfg_attr(not(bootstrap), ..)] // Needed to satisfy tidy; revert after bootstrap bump.
58
59
///
59
60
/// {{produces}}
60
61
///
Original file line number Diff line number Diff line change @@ -1870,15 +1870,16 @@ declare_lint! {
1870
1870
///
1871
1871
/// ### Example
1872
1872
///
1873
- /// ```rust,compile_fail
1873
+ #[ cfg_attr( bootstrap, doc = "```ignore" ) ]
1874
+ #[ cfg_attr( not( bootstrap) , doc = "```rust,compile_fail" ) ]
1874
1875
/// #![deny(elided_named_lifetimes)]
1875
1876
/// struct Foo;
1876
1877
/// impl Foo {
1877
1878
/// pub fn get_mut(&'static self, x: &mut u8) -> &mut u8 {
1878
1879
/// unsafe { &mut *(x as *mut _) }
1879
1880
/// }
1880
1881
/// }
1881
- /// ```
1882
+ # [ doc = " ```" ] // #[cfg_attr(not(bootstrap), ..)] // Needed to satisfy tidy; revert after bootstrap bump.
1882
1883
///
1883
1884
/// {{produces}}
1884
1885
///
You can’t perform that action at this time.
0 commit comments