rust/src/libstd
Dylan DPC c0369c4523
Rollup merge of #70048 - TyPR124:mutable_osstr, r=dtolnay
Allow obtaining &mut OsStr

```rust
impl DerefMut for OsString {...}              // type Target = OsStr
impl IndexMut<RangeFull> for OsString {...}   // type Output = OsStr
```

---

This change is pulled out of #69937 per @dtolnay

This implements `DerefMut for OsString` to allow obtaining a `&mut OsStr`. This also implements `IndexMut for OsString`, which is used by `DerefMut`. This pattern is the same as is used by `Deref`.

This is necessary to for methods like `make_ascii_lowercase` which need to mutate the underlying value.
2020-03-27 01:23:51 +01:00
..
benches Format libstd with rustfmt 2019-11-29 18:43:27 -08:00
collections Don't redundantly repeat field names (clippy::redundant_field_names) 2020-03-06 19:42:18 +01:00
ffi add comment about maintaining OsStr encoding 2020-03-20 09:00:53 -04:00
io spaces between braces really ruin readability 2020-03-24 15:39:29 +01:00
net For issue 53957: revise unit tests to focus on underlying bug of 23076. 2020-03-20 13:56:25 -04:00
os fix various typos 2020-03-06 15:19:31 +01:00
prelude builtin_macros: Add attribute macro #[cfg_accessible(path)] 2020-03-10 01:02:13 +03:00
sync Fix "since" field for Once::is_complete's #[stable] attribute 2020-03-15 10:19:26 +01:00
sys Rollup merge of #70048 - TyPR124:mutable_osstr, r=dtolnay 2020-03-27 01:23:51 +01:00
sys_common Rollup merge of #70048 - TyPR124:mutable_osstr, r=dtolnay 2020-03-27 01:23:51 +01:00
tests stdarch: update submodule. 2020-02-01 22:04:18 -05:00
thread Return NonZeroU64 from ThreadId::as_u64. 2020-03-21 19:48:23 +01:00
alloc.rs Allow ZSTs in AllocRef 2020-03-08 11:01:12 +01:00
ascii.rs Format libstd with rustfmt 2019-11-29 18:43:27 -08:00
backtrace.rs remove redundant returns (clippy::needless_return) 2020-03-20 20:23:03 +01:00
build.rs remove dependency from libhermit 2019-11-25 08:59:23 +01:00
Cargo.toml Update backtrace crate to 0.3.46 2020-03-24 00:00:00 +00:00
env.rs doc: Add quote to .init_array 2020-03-19 17:35:28 +07:00
error.rs Fix deprecated Error.description() usage in docs 2020-03-21 12:33:52 +02:00
f32.rs Add notice about using new consts in new code on float modules 2020-02-12 20:20:56 +01:00
f64.rs Add notice about using new consts in new code on float modules 2020-02-12 20:20:56 +01:00
fs.rs Fix missing ` in doc for File::with_options 2020-03-06 14:27:09 +00:00
future.rs Add futures scaffolding to libcore 2020-03-17 22:17:31 +01:00
keyword_docs.rs Rollup merge of #67749 - gilescope:keyword-in, r=Dylan-DPC 2020-03-18 18:03:31 +01:00
lib.rs introduce negative_impls feature gate and document 2020-03-26 06:52:55 -04:00
macros.rs Update macros.rs: fix documentation typo. 2020-03-04 14:18:31 -05:00
memchr.rs libstd => 2018 2019-02-28 04:06:15 +09:00
num.rs Format libstd with rustfmt 2019-11-29 18:43:27 -08:00
panic.rs Require issue = "none" over issue = "0" in unstable attributes 2019-12-21 13:16:18 +02:00
panicking.rs Auto merge of #70010 - Amanieu:fix-opt-catch, r=Mark-Simulacrum 2020-03-16 08:08:51 +00:00
path.rs remove unneeded .as_ref() calls. 2020-02-29 02:16:04 +01:00
primitive_docs.rs Add notice about using new consts in new code on float modules 2020-02-12 20:20:56 +01:00
process.rs Format libstd with rustfmt 2019-11-29 18:43:27 -08:00
rt.rs Require issue = "none" over issue = "0" in unstable attributes 2019-12-21 13:16:18 +02:00
time.rs correct comment to match behavior 2020-02-29 08:40:09 -05:00