Skip to content

Commit

Permalink
Remove alloc::prelude
Browse files Browse the repository at this point in the history
As per the libs team decision in #58935.

Closes #58935
  • Loading branch information
Amanieu committed Oct 14, 2021
1 parent e1e9319 commit 8007dfa
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
@@ -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
@@ -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
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 8007dfa

Please sign in to comment.