rust/library/alloc/src
Jubilee e5a6e5c90d
Rollup merge of #95965 - CAD97:const-weak-new, r=workingjubilee
Stabilize const-weak-new

This is a fairly uncontroversial library stabilization, so I'm going ahead and proposing it to ride the trains to stable.

This stabilizes the following APIs, which are defined to be non-allocating constructors.

```rust
// alloc::rc
impl<T> Weak<T> {
    pub const fn new() -> Weak<T>;
}

// alloc::sync
impl<T> Weak<T> {
    pub const fn new() -> Weak<T>;
}
```

Closes #95091

``@rustbot`` modify labels: +needs-fcp
2023-07-30 17:50:46 -07:00
..
alloc run alloc benchmarks in Miri and fix UB 2022-11-07 10:34:04 +01:00
boxed More IS_ZST in library 2023-04-21 16:29:27 -07:00
collections Auto merge of #114236 - fee1-dead-contrib:rollup-m92j7q1, r=fee1-dead 2023-07-30 07:57:13 +00:00
ffi fixed documentation of from<CString> for Rc<CStr>: Arc -> Rc 2023-07-02 10:07:52 +06:00
raw_vec Add a unit test for zero-sized types in RawVec. 2021-11-26 19:30:45 +11:00
rc Introduce alloc::::UniqueRc 2023-06-19 12:24:06 -07:00
slice ignore core, alloc and test tests that require unwinding on panic=abort 2023-06-13 15:53:24 +02:00
sync Add Arc::into_inner for safely discarding Arcs without calling the destructor on the inner type. 2023-01-22 01:43:25 +09:00
testing Share testing utilities with non-btree test cases 2022-05-02 10:07:50 +02:00
vec Documentation: Fix Stilted Language in Vec->Indexing 2023-07-29 13:20:45 -07:00
alloc.rs remove additional [allow(unused_unsafe)] 2023-07-24 17:56:38 -04:00
borrow.rs enable rust_2018_idioms for doctests 2023-05-07 00:12:29 +03:00
boxed.rs Eliminate ZST allocations in Box and Vec 2023-07-13 15:00:53 +01:00
fmt.rs enable rust_2018_idioms for doctests 2023-05-07 00:12:29 +03:00
lib.rs reorder attributes to make miri-test-libstd work again 2023-06-11 22:15:46 +02:00
macros.rs Remove or justify use of #[rustc_box] 2023-02-27 20:54:55 -05:00
raw_vec.rs Eliminate ZST allocations in Box and Vec 2023-07-13 15:00:53 +01:00
rc.rs Rollup merge of #95965 - CAD97:const-weak-new, r=workingjubilee 2023-07-30 17:50:46 -07:00
slice.rs slice: Add a specialization for clone_into when T is Copy 2023-01-28 20:37:01 +01:00
str.rs Spelling library/ 2023-04-26 02:10:22 -04:00
string.rs Hide ToString implementations that specialize the default ones 2023-07-24 23:37:35 +09:00
sync.rs Rollup merge of #95965 - CAD97:const-weak-new, r=workingjubilee 2023-07-30 17:50:46 -07:00
task.rs Updating Wake example to use new 'pin!' macro 2023-04-25 13:50:50 +02:00
tests.rs fix an alloc test 2023-03-03 17:47:48 +00:00