File tree Expand file tree Collapse file tree 10 files changed +3
-58
lines changed Expand file tree Collapse file tree 10 files changed +3
-58
lines changed Original file line number Diff line number Diff line change 117
117
#![ feature( ptr_internals) ]
118
118
#![ feature( rustc_attrs) ]
119
119
#![ feature( receiver_trait) ]
120
- #![ cfg_attr( bootstrap, feature( min_const_generics) ) ]
121
120
#![ feature( min_specialization) ]
122
121
#![ feature( set_ptr_value) ]
123
122
#![ feature( slice_ptr_get) ]
Original file line number Diff line number Diff line change @@ -85,8 +85,6 @@ pub trait Wake {
85
85
}
86
86
}
87
87
88
- #[ cfg_attr( bootstrap, allow( rustc:: ineffective_unstable_trait_impl) ) ]
89
- #[ cfg_attr( not( bootstrap) , allow( ineffective_unstable_trait_impl) ) ]
90
88
#[ stable( feature = "wake_trait" , since = "1.51.0" ) ]
91
89
impl < W : Wake + Send + Sync + ' static > From < Arc < W > > for Waker {
92
90
fn from ( waker : Arc < W > ) -> Waker {
@@ -96,8 +94,6 @@ impl<W: Wake + Send + Sync + 'static> From<Arc<W>> for Waker {
96
94
}
97
95
}
98
96
99
- #[ cfg_attr( bootstrap, allow( rustc:: ineffective_unstable_trait_impl) ) ]
100
- #[ cfg_attr( not( bootstrap) , allow( ineffective_unstable_trait_impl) ) ]
101
97
#[ stable( feature = "wake_trait" , since = "1.51.0" ) ]
102
98
impl < W : Wake + Send + Sync + ' static > From < Arc < W > > for RawWaker {
103
99
fn from ( waker : Arc < W > ) -> RawWaker {
Original file line number Diff line number Diff line change @@ -1798,7 +1798,7 @@ fn subslice_patterns() {
1798
1798
1799
1799
macro_rules! c {
1800
1800
( $inp: expr, $typ: ty, $out: expr $( , ) ?) => {
1801
- assert_eq!( $out, identity:: <$typ>( $inp) ) ;
1801
+ assert_eq!( $out, identity:: <$typ>( $inp) )
1802
1802
} ;
1803
1803
}
1804
1804
Original file line number Diff line number Diff line change 128
128
#![ feature( repr_simd, platform_intrinsics) ]
129
129
#![ feature( rustc_attrs) ]
130
130
#![ feature( simd_ffi) ]
131
- #![ cfg_attr( bootstrap, feature( min_const_generics) ) ]
132
131
#![ feature( min_specialization) ]
133
132
#![ feature( staged_api) ]
134
133
#![ feature( std_internals) ]
Original file line number Diff line number Diff line change 1
- #[ cfg( bootstrap) ]
2
- #[ doc( include = "panic.md" ) ]
3
- #[ macro_export]
4
- #[ allow_internal_unstable( core_panic) ]
5
- #[ stable( feature = "core" , since = "1.6.0" ) ]
6
- #[ rustc_diagnostic_item = "core_panic_macro" ]
7
- macro_rules! panic {
8
- ( ) => (
9
- $crate:: panic!( "explicit panic" )
10
- ) ;
11
- ( $msg: literal $( , ) ?) => (
12
- $crate:: panicking:: panic( $msg)
13
- ) ;
14
- ( $msg: expr $( , ) ?) => (
15
- $crate:: panicking:: panic_str( $msg)
16
- ) ;
17
- ( $fmt: expr, $( $arg: tt) +) => (
18
- $crate:: panicking:: panic_fmt( $crate:: format_args!( $fmt, $( $arg) +) )
19
- ) ;
20
- }
21
-
22
- #[ cfg( not( bootstrap) ) ]
23
1
#[ doc( include = "panic.md" ) ]
24
2
#[ macro_export]
25
3
#[ rustc_builtin_macro = "core_panic" ]
Original file line number Diff line number Diff line change 4
4
//! types, initializing and manipulating memory.
5
5
6
6
#![ stable( feature = "rust1" , since = "1.0.0" ) ]
7
- #![ cfg_attr( bootstrap, allow( unused_unsafe) ) ]
8
7
9
8
use crate :: clone;
10
9
use crate :: cmp;
@@ -152,13 +151,6 @@ pub const fn forget<T>(t: T) {
152
151
#[ inline]
153
152
#[ unstable( feature = "forget_unsized" , issue = "none" ) ]
154
153
pub fn forget_unsized < T : ?Sized > ( t : T ) {
155
- #[ cfg( bootstrap) ]
156
- // SAFETY: the forget intrinsic could be safe, but there's no point in making it safe since
157
- // we'll be implementing this function soon via `ManuallyDrop`
158
- unsafe {
159
- intrinsics:: forget ( t)
160
- }
161
- #[ cfg( not( bootstrap) ) ]
162
154
intrinsics:: forget ( t)
163
155
}
164
156
Original file line number Diff line number Diff line change @@ -94,10 +94,7 @@ mod cell;
94
94
mod char;
95
95
mod clone;
96
96
mod cmp;
97
-
98
- #[ cfg( not( bootstrap) ) ]
99
97
mod const_ptr;
100
-
101
98
mod fmt;
102
99
mod hash;
103
100
mod intrinsics;
Original file line number Diff line number Diff line change @@ -284,7 +284,6 @@ fn uninit_write_slice_cloned_no_drop() {
284
284
}
285
285
286
286
#[ test]
287
- #[ cfg( not( bootstrap) ) ]
288
287
fn uninit_const_assume_init_read ( ) {
289
288
const FOO : u32 = unsafe { MaybeUninit :: new ( 42 ) . assume_init_read ( ) } ;
290
289
assert_eq ! ( FOO , 42 ) ;
Original file line number Diff line number Diff line change 185
185
//! [other]: #what-is-in-the-standard-library-documentation
186
186
//! [primitive types]: ../book/ch03-02-data-types.html
187
187
//! [rust-discord]: https://discord.gg/rust-lang
188
- #! [ cfg_attr ( not ( bootstrap ) , doc = " [array]: prim@array" ) ]
189
- #! [ cfg_attr ( not ( bootstrap ) , doc = " [slice]: prim@slice" ) ]
188
+ //! [array]: prim@array
189
+ //! [slice]: prim@slice
190
190
#![ cfg_attr( not( feature = "restricted-std" ) , stable( feature = "rust1" , since = "1.0.0" ) ) ]
191
191
#![ cfg_attr( feature = "restricted-std" , unstable( feature = "restricted_std" , issue = "none" ) ) ]
192
192
#![ doc(
Original file line number Diff line number Diff line change 4
4
//! library. Each macro is available for use when linking against the standard
5
5
//! library.
6
6
7
- #[ cfg( bootstrap) ]
8
- #[ doc( include = "../../core/src/macros/panic.md" ) ]
9
- #[ macro_export]
10
- #[ stable( feature = "rust1" , since = "1.0.0" ) ]
11
- #[ allow_internal_unstable( libstd_sys_internals) ]
12
- #[ cfg_attr( not( test) , rustc_diagnostic_item = "std_panic_macro" ) ]
13
- macro_rules! panic {
14
- ( ) => ( { $crate:: panic!( "explicit panic" ) } ) ;
15
- ( $msg: expr $( , ) ?) => ( { $crate:: rt:: begin_panic( $msg) } ) ;
16
- ( $fmt: expr, $( $arg: tt) +) => ( {
17
- $crate:: rt:: begin_panic_fmt( & $crate:: format_args!( $fmt, $( $arg) +) )
18
- } ) ;
19
- }
20
-
21
- #[ cfg( not( bootstrap) ) ]
22
7
#[ doc( include = "../../core/src/macros/panic.md" ) ]
23
8
#[ macro_export]
24
9
#[ rustc_builtin_macro = "std_panic" ]
You can’t perform that action at this time.
0 commit comments