about summary refs log tree commit diff
path: root/src/test/rustdoc-ui/coverage/json.rs
diff options
context:
space:
mode:
authorDylan DPC <dylan.dpc@gmail.com>2020-03-27 01:23:51 +0100
committerGitHub <noreply@github.com>2020-03-27 01:23:51 +0100
commitc0369c4523caecda8af40f4eb84509b42b673d85 (patch)
treec2568402f662316d31a8d77fa2c651673190dc8f /src/test/rustdoc-ui/coverage/json.rs
parentf635c3757b61d1d8aefa86e1d3acdd7d4dea90f8 (diff)
parent45416cd91a6bdc493ea62fb3f412713a0fd8e52e (diff)
downloadrust-c0369c4523caecda8af40f4eb84509b42b673d85.tar.gz
rust-c0369c4523caecda8af40f4eb84509b42b673d85.zip
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.
Diffstat (limited to 'src/test/rustdoc-ui/coverage/json.rs')
0 files changed, 0 insertions, 0 deletions