mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 16:24:46 +00:00
Make some lint doctests compatible with --stage=0
This commit is contained in:
parent
f9567d0f2b
commit
14ed979cdf
@ -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)]
|
||||||
///
|
///
|
||||||
|
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user