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 117117#![ feature( ptr_internals) ]
118118#![ feature( rustc_attrs) ]
119119#![ feature( receiver_trait) ]
120- #![ cfg_attr( bootstrap, feature( min_const_generics) ) ]
121120#![ feature( min_specialization) ]
122121#![ feature( set_ptr_value) ]
123122#![ feature( slice_ptr_get) ]
Original file line number Diff line number Diff line change @@ -85,8 +85,6 @@ pub trait Wake {
8585 }
8686}
8787
88- #[ cfg_attr( bootstrap, allow( rustc:: ineffective_unstable_trait_impl) ) ]
89- #[ cfg_attr( not( bootstrap) , allow( ineffective_unstable_trait_impl) ) ]
9088#[ stable( feature = "wake_trait" , since = "1.51.0" ) ]
9189impl < W : Wake + Send + Sync + ' static > From < Arc < W > > for Waker {
9290 fn from ( waker : Arc < W > ) -> Waker {
@@ -96,8 +94,6 @@ impl<W: Wake + Send + Sync + 'static> From<Arc<W>> for Waker {
9694 }
9795}
9896
99- #[ cfg_attr( bootstrap, allow( rustc:: ineffective_unstable_trait_impl) ) ]
100- #[ cfg_attr( not( bootstrap) , allow( ineffective_unstable_trait_impl) ) ]
10197#[ stable( feature = "wake_trait" , since = "1.51.0" ) ]
10298impl < W : Wake + Send + Sync + ' static > From < Arc < W > > for RawWaker {
10399 fn from ( waker : Arc < W > ) -> RawWaker {
Original file line number Diff line number Diff line change @@ -1798,7 +1798,7 @@ fn subslice_patterns() {
17981798
17991799 macro_rules! c {
18001800 ( $inp: expr, $typ: ty, $out: expr $( , ) ?) => {
1801- assert_eq!( $out, identity:: <$typ>( $inp) ) ;
1801+ assert_eq!( $out, identity:: <$typ>( $inp) )
18021802 } ;
18031803 }
18041804
Original file line number Diff line number Diff line change 128128#![ feature( repr_simd, platform_intrinsics) ]
129129#![ feature( rustc_attrs) ]
130130#![ feature( simd_ffi) ]
131- #![ cfg_attr( bootstrap, feature( min_const_generics) ) ]
132131#![ feature( min_specialization) ]
133132#![ feature( staged_api) ]
134133#![ 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) ) ]
231#[ doc( include = "panic.md" ) ]
242#[ macro_export]
253#[ rustc_builtin_macro = "core_panic" ]
Original file line number Diff line number Diff line change 44//! types, initializing and manipulating memory.
55
66#![ stable( feature = "rust1" , since = "1.0.0" ) ]
7- #![ cfg_attr( bootstrap, allow( unused_unsafe) ) ]
87
98use crate :: clone;
109use crate :: cmp;
@@ -152,13 +151,6 @@ pub const fn forget<T>(t: T) {
152151#[ inline]
153152#[ unstable( feature = "forget_unsized" , issue = "none" ) ]
154153pub 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) ) ]
162154 intrinsics:: forget ( t)
163155}
164156
Original file line number Diff line number Diff line change @@ -94,10 +94,7 @@ mod cell;
9494mod char;
9595mod clone;
9696mod cmp;
97-
98- #[ cfg( not( bootstrap) ) ]
9997mod const_ptr;
100-
10198mod fmt;
10299mod hash;
103100mod intrinsics;
Original file line number Diff line number Diff line change @@ -284,7 +284,6 @@ fn uninit_write_slice_cloned_no_drop() {
284284}
285285
286286#[ test]
287- #[ cfg( not( bootstrap) ) ]
288287fn uninit_const_assume_init_read ( ) {
289288 const FOO : u32 = unsafe { MaybeUninit :: new ( 42 ) . assume_init_read ( ) } ;
290289 assert_eq ! ( FOO , 42 ) ;
Original file line number Diff line number Diff line change 185185//! [other]: #what-is-in-the-standard-library-documentation
186186//! [primitive types]: ../book/ch03-02-data-types.html
187187//! [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
190190#![ cfg_attr( not( feature = "restricted-std" ) , stable( feature = "rust1" , since = "1.0.0" ) ) ]
191191#![ cfg_attr( feature = "restricted-std" , unstable( feature = "restricted_std" , issue = "none" ) ) ]
192192#![ doc(
Original file line number Diff line number Diff line change 44//! library. Each macro is available for use when linking against the standard
55//! library.
66
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) ) ]
227#[ doc( include = "../../core/src/macros/panic.md" ) ]
238#[ macro_export]
249#[ rustc_builtin_macro = "std_panic" ]
You can’t perform that action at this time.
0 commit comments