diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2021-10-16 08:02:21 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-10-16 08:02:21 +0200 |
| commit | dfed1a6c0775ef251b9ffe74ebe696e0d70c5993 (patch) | |
| tree | 213dcd35a2b477842070793b34f4f807959d513f /compiler/rustc_codegen_cranelift/example/alloc_example.rs | |
| parent | 9ae0804859614ff2e76b26f551ef2cdb19e927ef (diff) | |
| parent | 8007dfa3b2af8f9de8cf3568ac6b3770fd9e5afd (diff) | |
| download | rust-dfed1a6c0775ef251b9ffe74ebe696e0d70c5993.tar.gz rust-dfed1a6c0775ef251b9ffe74ebe696e0d70c5993.zip | |
Rollup merge of #89898 - Amanieu:remove_alloc_prelude, r=joshtriplett
Remove alloc::prelude As per the libs team decision in #58935. Closes #58935
Diffstat (limited to 'compiler/rustc_codegen_cranelift/example/alloc_example.rs')
| -rw-r--r-- | compiler/rustc_codegen_cranelift/example/alloc_example.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_codegen_cranelift/example/alloc_example.rs b/compiler/rustc_codegen_cranelift/example/alloc_example.rs index d0d492e9674..bc1594d82ec 100644 --- a/compiler/rustc_codegen_cranelift/example/alloc_example.rs +++ b/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; |
