Skip to content

Commit

Permalink
Rollup merge of rust-lang#89898 - Amanieu:remove_alloc_prelude, r=jos…
Browse files Browse the repository at this point in the history
…htriplett

Remove alloc::prelude

As per the libs team decision in rust-lang#58935.

Closes rust-lang#58935
  • Loading branch information
matthiaskrgr authored Oct 15, 2021
2 parents 16bdcdb + 8007dfa commit 774ab62
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 34 deletions.
4 changes: 2 additions & 2 deletions compiler/rustc_codegen_cranelift/example/alloc_example.rs
Original file line number Diff line number Diff line change
@@ -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;

Expand Down
4 changes: 2 additions & 2 deletions compiler/rustc_codegen_gcc/example/alloc_example.rs
Original file line number Diff line number Diff line change
@@ -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;

Expand Down
1 change: 0 additions & 1 deletion library/alloc/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
15 changes: 0 additions & 15 deletions library/alloc/src/prelude/mod.rs

This file was deleted.

14 changes: 0 additions & 14 deletions library/alloc/src/prelude/v1.rs

This file was deleted.

0 comments on commit 774ab62

Please sign in to comment.