Make some lint doctests compatible with --stage=0

This commit is contained in:
Zalathar 2024-09-14 23:16:47 +10:00
parent f9567d0f2b
commit 14ed979cdf
2 changed files with 2 additions and 1 deletions

View File

@ -24,7 +24,7 @@ declare_lint! {
/// ### Example /// ### Example
/// ///
/// ```rust,edition2021 /// ```rust,edition2021
/// #![feature(if_let_rescope)] /// #![cfg_attr(not(bootstrap), feature(if_let_rescope))] // Simplify this in bootstrap bump.
/// #![warn(if_let_rescope)] /// #![warn(if_let_rescope)]
/// #![allow(unused_variables)] /// #![allow(unused_variables)]
/// ///

View File

@ -1871,6 +1871,7 @@ declare_lint! {
/// ### Example /// ### Example
/// ///
/// ```rust,compile_fail /// ```rust,compile_fail
/// # #[cfg_attr(bootstrap)] compile_error!(); // Remove this in bootstrap bump.
/// #![deny(elided_named_lifetimes)] /// #![deny(elided_named_lifetimes)]
/// struct Foo; /// struct Foo;
/// impl Foo { /// impl Foo {