Rollup merge of #89898 - Amanieu:remove_alloc_prelude, r=joshtriplett
Remove alloc::prelude As per the libs team decision in #58935. Closes #58935
This commit is contained in:
commit
dfed1a6c07
@ -1,10 +1,10 @@
|
||||
#![feature(start, core_intrinsics, alloc_prelude, alloc_error_handler, box_syntax)]
|
||||
#![feature(start, core_intrinsics, alloc_error_handler, box_syntax)]
|
||||
#![no_std]
|
||||
|
||||
extern crate alloc;
|
||||
extern crate alloc_system;
|
||||
|
||||
use alloc::prelude::v1::*;
|
||||
use alloc::boxed::Box;
|
||||
|
||||
use alloc_system::System;
|
||||
|
||||
|
@ -1,10 +1,10 @@
|
||||
#![feature(start, box_syntax, core_intrinsics, alloc_prelude, alloc_error_handler)]
|
||||
#![feature(start, box_syntax, core_intrinsics, alloc_error_handler)]
|
||||
#![no_std]
|
||||
|
||||
extern crate alloc;
|
||||
extern crate alloc_system;
|
||||
|
||||
use alloc::prelude::v1::*;
|
||||
use alloc::boxed::Box;
|
||||
|
||||
use alloc_system::System;
|
||||
|
||||
|
@ -189,7 +189,6 @@ mod boxed {
|
||||
pub mod borrow;
|
||||
pub mod collections;
|
||||
pub mod fmt;
|
||||
pub mod prelude;
|
||||
pub mod raw_vec;
|
||||
pub mod rc;
|
||||
pub mod slice;
|
||||
|
@ -1,15 +0,0 @@
|
||||
//! The alloc Prelude
|
||||
//!
|
||||
//! The purpose of this module is to alleviate imports of commonly-used
|
||||
//! items of the `alloc` crate by adding a glob import to the top of modules:
|
||||
//!
|
||||
//! ```
|
||||
//! # #![allow(unused_imports)]
|
||||
//! #![feature(alloc_prelude)]
|
||||
//! extern crate alloc;
|
||||
//! use alloc::prelude::v1::*;
|
||||
//! ```
|
||||
|
||||
#![unstable(feature = "alloc_prelude", issue = "58935")]
|
||||
|
||||
pub mod v1;
|
@ -1,14 +0,0 @@
|
||||
//! The first version of the prelude of `alloc` crate.
|
||||
//!
|
||||
//! See the [module-level documentation](../index.html) for more.
|
||||
|
||||
#![unstable(feature = "alloc_prelude", issue = "58935")]
|
||||
|
||||
#[unstable(feature = "alloc_prelude", issue = "58935")]
|
||||
pub use crate::borrow::ToOwned;
|
||||
#[unstable(feature = "alloc_prelude", issue = "58935")]
|
||||
pub use crate::boxed::Box;
|
||||
#[unstable(feature = "alloc_prelude", issue = "58935")]
|
||||
pub use crate::string::{String, ToString};
|
||||
#[unstable(feature = "alloc_prelude", issue = "58935")]
|
||||
pub use crate::vec::Vec;
|
Loading…
Reference in New Issue
Block a user