Commit 5c42ffe
authored
Rollup merge of #68200 - KodrAus:stabilize/debug_map_key_value, r=alexcrichton
Stabilize the debug_map_key_value feature
RFC: rust-lang/rfcs#2696
Tracking issue: #62482
Stabilizes the `debug_map_key_value` feature, which covers:
```rust
impl<'a, 'b> DebugMap<'a, 'b> {
pub fn key(&mut self, key: &dyn fmt::Debug) -> &mut DebugMap<'a, 'b> {}
pub fn value(&mut self, value: &dyn fmt::Debug) -> &mut DebugMap<'a, 'b> {}
}
```
These methods are small and self-contained, and are used as the basis for the existing `DebugMap::entry` method, so have been used in the wild for the last 6 months or so.File tree
3 files changed
+2
-14
lines changed- src
- doc/unstable-book/src/library-features
- libcore
- fmt
- tests
3 files changed
+2
-14
lines changedLines changed: 0 additions & 9 deletions
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
778 | 778 | | |
779 | 779 | | |
780 | 780 | | |
781 | | - | |
782 | 781 | | |
783 | 782 | | |
784 | 783 | | |
| |||
796 | 795 | | |
797 | 796 | | |
798 | 797 | | |
799 | | - | |
| 798 | + | |
800 | 799 | | |
801 | 800 | | |
802 | 801 | | |
| |||
843 | 842 | | |
844 | 843 | | |
845 | 844 | | |
846 | | - | |
847 | 845 | | |
848 | 846 | | |
849 | 847 | | |
| |||
861 | 859 | | |
862 | 860 | | |
863 | 861 | | |
864 | | - | |
| 862 | + | |
865 | 863 | | |
866 | 864 | | |
867 | 865 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | 7 | | |
9 | 8 | | |
10 | 9 | | |
| |||
0 commit comments