Skip to content

Commit 4a2b4a4

Browse files
hoshinolinamarcan
authored andcommitted
rust: alloc: Rust 1.73 compat fixes
Signed-off-by: Asahi Lina <[email protected]>
1 parent a4a7598 commit 4a2b4a4

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

rust/alloc/lib.rs

Lines changed: 3 additions & 3 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
#![allow(unused_attributes)]
6263
#![stable(feature = "alloc", since = "1.36.0")]
@@ -109,7 +110,7 @@
109110
#![feature(cfg_version)]
110111
#![feature(coerce_unsized)]
111112
#![feature(const_align_of_val)]
112-
#![feature(const_box)]
113+
#![cfg_attr(not(version("1.73")), feature(const_box))]
113114
#![cfg_attr(not(no_borrow), feature(const_cow_is_borrowed))]
114115
#![feature(const_eval_select)]
115116
#![feature(const_maybe_uninit_as_mut_ptr)]
@@ -140,7 +141,7 @@
140141
#![feature(maybe_uninit_uninit_array_transpose)]
141142
#![feature(pattern)]
142143
#![feature(pointer_byte_offsets)]
143-
#![feature(provide_any)]
144+
#![cfg_attr(not(version("1.73")), feature(provide_any))]
144145
#![feature(ptr_internals)]
145146
#![feature(ptr_metadata)]
146147
#![feature(ptr_sub_ptr)]
@@ -203,7 +204,6 @@
203204
//
204205
// Rustdoc features:
205206
#![feature(doc_cfg)]
206-
#![feature(doc_cfg_hide)]
207207
// Technically, this is a bug in rustdoc: rustdoc sees the documentation on `#[lang = slice_alloc]`
208208
// blocks is for `&[T]`, which also has documentation using this feature in `core`, and gets mad
209209
// that the feature-gate isn't enabled. Ideally, it wouldn't check for the feature gate for docs

0 commit comments

Comments
 (0)