Skip to content

Commit ec27d6d

Browse files
committed
rust: alloc: Rust 1.73 compat fixes
Signed-off-by: Asahi Lina <lina@asahilina.net>
1 parent 0606f9d commit ec27d6d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

rust/alloc/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@
5757
//! [`Cell`]: core::cell
5858
//! [`Rc`]: rc
5959
//! [`RefCell`]: core::cell
60+
#![feature(doc_cfg_hide)]
6061

6162
// To run alloc tests without x.py without ending up with two copies of alloc, Miri needs to be
6263
// able to "empty" this crate. See <https://github.com/rust-lang/miri-test-libstd/issues/4>.
@@ -113,7 +114,7 @@
113114
#![feature(cfg_version)]
114115
#![feature(coerce_unsized)]
115116
#![feature(const_align_of_val)]
116-
#![feature(const_box)]
117+
#![cfg_attr(not(version("1.73")), feature(const_box))]
117118
#![cfg_attr(not(no_borrow), feature(const_cow_is_borrowed))]
118119
#![feature(const_eval_select)]
119120
#![feature(const_maybe_uninit_as_mut_ptr)]
@@ -205,7 +206,6 @@
205206
//
206207
// Rustdoc features:
207208
#![feature(doc_cfg)]
208-
#![feature(doc_cfg_hide)]
209209
// Technically, this is a bug in rustdoc: rustdoc sees the documentation on `#[lang = slice_alloc]`
210210
// blocks is for `&[T]`, which also has documentation using this feature in `core`, and gets mad
211211
// that the feature-gate isn't enabled. Ideally, it wouldn't check for the feature gate for docs

0 commit comments

Comments
 (0)