Skip to content

Commit 14ed979

Browse files
committed
Make some lint doctests compatible with --stage=0
1 parent f9567d0 commit 14ed979

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

compiler/rustc_lint/src/if_let_rescope.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ declare_lint! {
2424
/// ### Example
2525
///
2626
/// ```rust,edition2021
27-
/// #![feature(if_let_rescope)]
27+
/// #![cfg_attr(not(bootstrap), feature(if_let_rescope))] // Simplify this in bootstrap bump.
2828
/// #![warn(if_let_rescope)]
2929
/// #![allow(unused_variables)]
3030
///

compiler/rustc_lint_defs/src/builtin.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1871,6 +1871,7 @@ declare_lint! {
18711871
/// ### Example
18721872
///
18731873
/// ```rust,compile_fail
1874+
/// # #[cfg_attr(bootstrap)] compile_error!(); // Remove this in bootstrap bump.
18741875
/// #![deny(elided_named_lifetimes)]
18751876
/// struct Foo;
18761877
/// impl Foo {

0 commit comments

Comments
 (0)