diff options
| author | bors <bors@rust-lang.org> | 2022-11-22 07:15:48 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-11-22 07:15:48 +0000 |
| commit | a78c9bee4d9d51a3891bd8ecae1f28a93b83653b (patch) | |
| tree | 7425ff737355fa24f044a5d4c5bf738a2829c80a /library/std/src | |
| parent | 0f7d81754db66d46ee9aa033735a1ee5c1daa44d (diff) | |
| parent | 9043dfd946164ff9de6d6c10e0a99e17dc25c098 (diff) | |
| download | rust-a78c9bee4d9d51a3891bd8ecae1f28a93b83653b.tar.gz rust-a78c9bee4d9d51a3891bd8ecae1f28a93b83653b.zip | |
Auto merge of #104702 - Manishearth:rollup-75hagzd, r=Manishearth
Rollup of 7 pull requests Successful merges: - #83608 (Add slice methods for indexing via an array of indices.) - #95583 (Deprecate the unstable `ptr_to_from_bits` feature) - #101655 (Make the Box one-liner more descriptive) - #102207 (Constify remaining `Layout` methods) - #103193 (mark sys_common::once::generic::Once::new const-stable) - #104622 (Use clang for the UEFI targets) - #104638 (Move macro_rules diagnostics to diagnostics module) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Diffstat (limited to 'library/std/src')
| -rw-r--r-- | library/std/src/lib.rs | 1 | ||||
| -rw-r--r-- | library/std/src/sys_common/once/generic.rs | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/library/std/src/lib.rs b/library/std/src/lib.rs index 9334c833bb6..63ee6c521d7 100644 --- a/library/std/src/lib.rs +++ b/library/std/src/lib.rs @@ -347,6 +347,7 @@ #![feature(stdsimd)] #![feature(test)] #![feature(trace_macros)] +#![feature(get_many_mut)] // // Only used in tests/benchmarks: // diff --git a/library/std/src/sys_common/once/generic.rs b/library/std/src/sys_common/once/generic.rs index acf5f247164..d953a674592 100644 --- a/library/std/src/sys_common/once/generic.rs +++ b/library/std/src/sys_common/once/generic.rs @@ -107,6 +107,7 @@ struct WaiterQueue<'a> { impl Once { #[inline] + #[rustc_const_stable(feature = "const_once_new", since = "1.32.0")] pub const fn new() -> Once { Once { state_and_queue: AtomicPtr::new(ptr::invalid_mut(INCOMPLETE)) } } |
