File tree 10 files changed +12
-0
lines changed 10 files changed +12
-0
lines changed Original file line number Diff line number Diff line change 88
88
#![ warn( missing_docs) ]
89
89
#![ allow( explicit_outlives_requirements) ]
90
90
#![ warn( multiple_supertrait_upcastable) ]
91
+ #![ cfg_attr( not( bootstrap) , allow( internal_features) ) ]
91
92
//
92
93
// Library features:
93
94
// tidy-alphabetical-start
Original file line number Diff line number Diff line change 14
14
//!
15
15
//! ```rust
16
16
//! #![feature(core_intrinsics, custom_mir)]
17
+ #![ cfg_attr( not( bootstrap) , doc = "#![allow(internal_features)]" ) ]
17
18
//!
18
19
//! use core::intrinsics::mir::*;
19
20
//!
63
64
//!
64
65
//! ```rust
65
66
//! #![feature(core_intrinsics, custom_mir)]
67
+ #![ cfg_attr( not( bootstrap) , doc = "#![allow(internal_features)]" ) ]
66
68
//!
67
69
//! use core::intrinsics::mir::*;
68
70
//!
@@ -315,6 +317,7 @@ define!(
315
317
/// # Examples
316
318
///
317
319
/// ```rust
320
+ #[ cfg_attr( not( bootstrap) , doc = "#![allow(internal_features)]" ) ]
318
321
/// #![feature(custom_mir, core_intrinsics)]
319
322
///
320
323
/// use core::intrinsics::mir::*;
Original file line number Diff line number Diff line change 96
96
#![ allow( explicit_outlives_requirements) ]
97
97
#![ allow( incomplete_features) ]
98
98
#![ warn( multiple_supertrait_upcastable) ]
99
+ #![ cfg_attr( not( bootstrap) , allow( internal_features) ) ]
99
100
//
100
101
// Library features:
101
102
// tidy-alphabetical-start
Original file line number Diff line number Diff line change 14
14
#![ feature( staged_api) ]
15
15
#![ feature( rustc_attrs) ]
16
16
#![ feature( c_unwind) ]
17
+ #![ cfg_attr( not( bootstrap) , allow( internal_features) ) ]
17
18
18
19
#[ cfg( target_os = "android" ) ]
19
20
mod android;
Original file line number Diff line number Diff line change 26
26
#![ feature( c_unwind) ]
27
27
// `real_imp` is unused with Miri, so silence warnings.
28
28
#![ cfg_attr( miri, allow( dead_code) ) ]
29
+ #![ cfg_attr( not( bootstrap) , allow( internal_features) ) ]
29
30
30
31
use alloc:: boxed:: Box ;
31
32
use core:: any:: Any ;
Original file line number Diff line number Diff line change 33
33
#![ feature( min_specialization) ]
34
34
#![ feature( strict_provenance) ]
35
35
#![ recursion_limit = "256" ]
36
+ #![ cfg_attr( not( bootstrap) , allow( internal_features) ) ]
36
37
37
38
#[ unstable( feature = "proc_macro_internals" , issue = "27812" ) ]
38
39
#[ doc( hidden) ]
Original file line number Diff line number Diff line change 7
7
issue = "none"
8
8
) ]
9
9
#![ allow( unused_features) ]
10
+ #![ cfg_attr( not( bootstrap) , allow( internal_features) ) ]
10
11
#![ feature( staged_api) ]
Original file line number Diff line number Diff line change 220
220
#![ warn( missing_debug_implementations) ]
221
221
#![ allow( explicit_outlives_requirements) ]
222
222
#![ allow( unused_lifetimes) ]
223
+ #![ cfg_attr( not( bootstrap) , allow( internal_features) ) ]
223
224
#![ deny( rustc:: existing_doc_keyword) ]
224
225
#![ deny( fuzzy_provenance_casts) ]
225
226
// Ensure that std can be linked against panic_abort despite compiled with `-C panic=unwind`
Original file line number Diff line number Diff line change 21
21
#![ feature( process_exitcode_internals) ]
22
22
#![ feature( panic_can_unwind) ]
23
23
#![ feature( test) ]
24
+ #![ cfg_attr( not( bootstrap) , allow( internal_features) ) ]
24
25
25
26
// Public reexports
26
27
pub use self :: bench:: { black_box, Bencher } ;
Original file line number Diff line number Diff line change 5
5
#![ feature( c_unwind) ]
6
6
#![ feature( cfg_target_abi) ]
7
7
#![ cfg_attr( not( target_env = "msvc" ) , feature( libc) ) ]
8
+ #![ cfg_attr( not( bootstrap) , allow( internal_features) ) ]
8
9
9
10
cfg_if:: cfg_if! {
10
11
if #[ cfg( target_env = "msvc" ) ] {
You can’t perform that action at this time.
0 commit comments