@@ -635,46 +635,11 @@ macro_rules! todo {
635
635
( $( $arg: tt) +) => ( panic!( "not yet implemented: {}" , format_args!( $( $arg) +) ) ) ;
636
636
}
637
637
638
- /// Creates an array of [`MaybeUninit`].
639
- ///
640
- /// This macro constructs an uninitialized array of the type `[MaybeUninit<K>; N]`.
641
- /// It exists solely because bootstrap does not yet support const array-init expressions.
642
- ///
643
- /// [`MaybeUninit`]: mem/union.MaybeUninit.html
644
- // FIXME: Remove both versions of this macro once bootstrap is 1.38.
645
- #[ macro_export]
646
- #[ unstable( feature = "maybe_uninit_array" , issue = "53491" ) ]
647
- #[ cfg( bootstrap) ]
648
- macro_rules! uninit_array {
649
- // This `assume_init` is safe because an array of `MaybeUninit` does not
650
- // require initialization.
651
- ( $t: ty; $size: expr) => ( unsafe {
652
- MaybeUninit :: <[ MaybeUninit <$t>; $size] >:: uninit( ) . assume_init( )
653
- } ) ;
654
- }
655
-
656
- /// Creates an array of [`MaybeUninit`].
657
- ///
658
- /// This macro constructs an uninitialized array of the type `[MaybeUninit<K>; N]`.
659
- /// It exists solely because bootstrap does not yet support const array-init expressions.
660
- ///
661
- /// [`MaybeUninit`]: mem/union.MaybeUninit.html
662
- // FIXME: Just inline this version of the macro once bootstrap is 1.38.
663
- #[ macro_export]
664
- #[ unstable( feature = "maybe_uninit_array" , issue = "53491" ) ]
665
- #[ cfg( not( bootstrap) ) ]
666
- macro_rules! uninit_array {
667
- ( $t: ty; $size: expr) => (
668
- [ MaybeUninit :: <$t>:: UNINIT ; $size]
669
- ) ;
670
- }
671
-
672
638
/// Definitions of built-in macros.
673
639
///
674
640
/// Most of the macro properties (stability, visibility, etc.) are taken from the source code here,
675
641
/// with exception of expansion functions transforming macro inputs into outputs,
676
642
/// those functions are provided by the compiler.
677
- #[ cfg( not( bootstrap) ) ]
678
643
pub ( crate ) mod builtin {
679
644
680
645
/// Causes compilation to fail with the given error message when encountered.
0 commit comments