|
56 | 56 | //! The [`heap`](heap/index.html) module defines the low-level interface to the
|
57 | 57 | //! default global allocator. It is not compatible with the libc allocator API.
|
58 | 58 |
|
59 |
| -// Do not remove on snapshot creation. Needed for bootstrap. (Issue #22364) |
60 |
| -#![cfg_attr(stage0, feature(custom_attribute))] |
61 | 59 | #![crate_name = "alloc"]
|
62 | 60 | #![crate_type = "rlib"]
|
63 |
| -#![cfg_attr(stage0, staged_api)] |
64 | 61 | #![allow(unused_attributes)]
|
65 | 62 | #![unstable(feature = "alloc",
|
66 | 63 | reason = "this library is unlikely to be stabilized in its current \
|
|
72 | 69 | issue_tracker_base_url = "https://github.com/rust-lang/rust/issues/",
|
73 | 70 | test(no_crate_inject, attr(allow(unused_variables), deny(warnings))))]
|
74 | 71 | #![no_std]
|
75 |
| -#![cfg_attr(not(stage0), needs_allocator)] |
| 72 | +#![needs_allocator] |
76 | 73 |
|
77 |
| -#![cfg_attr(stage0, feature(rustc_attrs))] |
78 |
| -#![cfg_attr(stage0, feature(no_std))] |
79 |
| -#![cfg_attr(stage0, allow(unused_attributes))] |
80 | 74 | #![feature(allocator)]
|
81 | 75 | #![feature(box_syntax)]
|
82 | 76 | #![feature(coerce_unsized)]
|
83 | 77 | #![feature(core_intrinsics)]
|
84 | 78 | #![feature(custom_attribute)]
|
85 | 79 | #![feature(fundamental)]
|
86 | 80 | #![feature(lang_items)]
|
87 |
| -#![feature(nonzero)] |
88 | 81 | #![feature(num_bits_bytes)]
|
89 | 82 | #![feature(optin_builtin_traits)]
|
90 | 83 | #![feature(placement_in_syntax)]
|
|
95 | 88 | #![feature(unboxed_closures)]
|
96 | 89 | #![feature(unique)]
|
97 | 90 | #![feature(unsafe_no_drop_flag, filling_drop)]
|
98 |
| -// SNAP 1af31d4 |
99 |
| -#![allow(unused_features)] |
100 |
| -// SNAP 1af31d4 |
101 |
| -#![allow(unused_attributes)] |
102 | 91 | #![feature(dropck_parametricity)]
|
103 | 92 | #![feature(unsize)]
|
104 | 93 | #![feature(drop_in_place)]
|
105 | 94 | #![feature(fn_traits)]
|
106 | 95 |
|
107 |
| -#![cfg_attr(stage0, feature(alloc_system))] |
108 |
| -#![cfg_attr(not(stage0), feature(needs_allocator))] |
| 96 | +#![feature(needs_allocator)] |
109 | 97 |
|
110 | 98 | #![cfg_attr(test, feature(test, rustc_private, box_heap))]
|
111 | 99 |
|
112 |
| -#[cfg(stage0)] |
113 |
| -extern crate alloc_system; |
114 |
| - |
115 | 100 | // Allow testing this library
|
116 | 101 |
|
117 | 102 | #[cfg(test)]
|
|
0 commit comments