about summary refs log tree commit diff
path: root/compiler
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-08-25 16:51:04 +0200
committerGitHub <noreply@github.com>2024-08-25 16:51:04 +0200
commit0e2523eaf8a29d6b8394cb43abfed3dfd4ddbc5a (patch)
tree3cc5b280a8eb8cdb4abd01515860bb55bf2491c2 /compiler
parent8e27d4ce42a5634b4c0786a9258f3c0c8638370e (diff)
parent90b4e17a1f6604db7f55b45b8b70c2db0afcec14 (diff)
downloadrust-0e2523eaf8a29d6b8394cb43abfed3dfd4ddbc5a.tar.gz
rust-0e2523eaf8a29d6b8394cb43abfed3dfd4ddbc5a.zip
Rollup merge of #129416 - workingjubilee:partial-move-from-stabilization, r=dtolnay
library: Move unstable API of new_uninit to new features

- `new_zeroed` variants move to `new_zeroed_alloc`
- the `write` fn moves to `box_uninit_write`

The remainder will be stabilized in upcoming patches, as it was decided to only stabilize `uninit*` and `assume_init`.
Diffstat (limited to 'compiler')
-rw-r--r--compiler/rustc_index/src/lib.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_index/src/lib.rs b/compiler/rustc_index/src/lib.rs
index b5e4f02a8d1..b9d2a43206b 100644
--- a/compiler/rustc_index/src/lib.rs
+++ b/compiler/rustc_index/src/lib.rs
@@ -2,6 +2,7 @@
 #![cfg_attr(all(feature = "nightly", test), feature(stmt_expr_attributes))]
 #![cfg_attr(feature = "nightly", allow(internal_features))]
 #![cfg_attr(feature = "nightly", feature(extend_one, new_uninit, step_trait, test))]
+#![cfg_attr(feature = "nightly", feature(new_zeroed_alloc))]
 // tidy-alphabetical-end
 
 pub mod bit_set;