Remove alloc::prelude

As per the libs team decision in #58935.

Closes #58935
This commit is contained in:
Amanieu d'Antras 2021-10-15 01:41:31 +02:00
parent e1e9319d93
commit 8007dfa3b2
5 changed files with 4 additions and 34 deletions

View file

@ -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] #![no_std]
extern crate alloc; extern crate alloc;
extern crate alloc_system; extern crate alloc_system;
use alloc::prelude::v1::*; use alloc::boxed::Box;
use alloc_system::System; use alloc_system::System;

View file

@ -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] #![no_std]
extern crate alloc; extern crate alloc;
extern crate alloc_system; extern crate alloc_system;
use alloc::prelude::v1::*; use alloc::boxed::Box;
use alloc_system::System; use alloc_system::System;

View file

@ -189,7 +189,6 @@ mod boxed {
pub mod borrow; pub mod borrow;
pub mod collections; pub mod collections;
pub mod fmt; pub mod fmt;
pub mod prelude;
pub mod raw_vec; pub mod raw_vec;
pub mod rc; pub mod rc;
pub mod slice; pub mod slice;

View file

@ -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;

View file

@ -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;