about summary refs log tree commit diff
path: root/src/test/incremental/thinlto
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2019-07-09 04:52:35 +0200
committerGitHub <noreply@github.com>2019-07-09 04:52:35 +0200
commitfb9ca03e0ba0f23666cc89ed0aadfc75c05af95c (patch)
treea7e070e0a580f050f7e19174bfb6e0fd13b1a825 /src/test/incremental/thinlto
parent09ab31bc64f4ede9f9498440cb4225c173767c1e (diff)
parent70d630fd5a57d436b6a5064840b69920b10a110c (diff)
downloadrust-fb9ca03e0ba0f23666cc89ed0aadfc75c05af95c.tar.gz
rust-fb9ca03e0ba0f23666cc89ed0aadfc75c05af95c.zip
Rollup merge of #60458 - KodrAus:debug_map_entry, r=alexcrichton
Add key and value methods to DebugMap

Implementation PR for an active (not approved) RFC: https://github.com/rust-lang/rfcs/pull/2696.

Add two new methods to `std::fmt::DebugMap` for writing the key and value part of a map entry separately:

```rust
impl<'a, 'b: 'a> DebugMap<'a, 'b> {
    pub fn key(&mut self, key: &dyn Debug) -> &mut Self;
    pub fn value(&mut self, value: &dyn Debug) -> &mut Self;
}
```

I want to do this so that I can write a `serde::Serializer` that forwards to our format builders, so that any `T: Serialize` can also be treated like a `T: Debug`.
Diffstat (limited to 'src/test/incremental/thinlto')
0 files changed, 0 insertions, 0 deletions