rust/library/core/src/str
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
..
converts.rs Add #[must_use] to from_value conversions 2021-10-10 19:00:33 -04:00
error.rs Use #[non_exhaustive] where appropriate 2021-06-24 04:16:11 -04:00
iter.rs Add #[must_use] to as_type conversions 2021-10-11 13:57:38 -04:00
lossy.rs Add #[must_use] to from_value conversions 2021-10-10 19:00:33 -04:00
mod.rs Add #[must_use] to as_type conversions 2021-10-11 13:57:38 -04:00
pattern.rs Fix #85462 by adding a marker flag 2021-07-11 17:45:12 +02:00
traits.rs Use #[non_exhaustive] where appropriate 2021-06-24 04:16:11 -04:00
validations.rs manually inline function 2021-09-11 12:29:34 +02:00