rust/library/alloc/src/collections
the8472 b55a3c5d15
Rollup merge of #89778 - jkugelman:must-use-as_type-conversions, r=joshtriplett
Add #[must_use] to as_type conversions

Clippy missed these:

```rust
alloc::string::String   fn as_mut_str(&mut self) -> &mut str;
core::mem::NonNull<T>   unsafe fn as_uninit_mut<'a>(&mut self) -> &'a MaybeUninit<T>;
str                     unsafe fn as_bytes_mut(&mut self) -> &mut [u8];
str                     fn as_mut_ptr(&mut self) -> *mut u8;
```

Parent issue: #89692

r? ````@joshtriplett````
2021-10-12 14:53:08 +02:00
..
btree Rollup merge of #89726 - jkugelman:must-use-alloc-constructors, r=joshtriplett 2021-10-11 14:11:42 +02:00
linked_list Implement changes suggested by @Amanieu 2021-07-01 21:08:01 +02:00
vec_deque Add #[must_use] to alloc constructors 2021-10-10 02:19:30 -04:00
binary_heap.rs Rollup merge of #89778 - jkugelman:must-use-as_type-conversions, r=joshtriplett 2021-10-12 14:53:08 +02:00
linked_list.rs Rollup merge of #89778 - jkugelman:must-use-as_type-conversions, r=joshtriplett 2021-10-12 14:53:08 +02:00
mod.rs Stabilize try_reserve 2021-10-04 10:29:46 +01:00