Closed
Description
Feature gate: #![feature(debug_more_non_exhaustive)]
This is a tracking issue for the non_exhaustive()
function on fmt::Debug{List, Map, Set, Tuple}
, which provides an easy way to omit fields with ..
.
Public API
// core::fmt
impl<'a, 'b: 'a> DebugList<'a, 'b> {
pub fn finish_non_exhaustive(&mut self) -> Result<(), Error>;
}
impl<'a, 'b: 'a> DebugMap<'a, 'b> {
pub fn finish_non_exhaustive(&mut self) -> Result<(), Error>;
}
impl<'a, 'b: 'a> DebugSet<'a, 'b> {
pub fn finish_non_exhaustive(&mut self) -> Result<(), Error>;
}
impl<'a, 'b: 'a> DebugTuple<'a, 'b> {
pub fn finish_non_exhaustive(&mut self) -> Result<(), Error>;
}
Steps / History
- ACP: ACP: Add
finish_non_exhaustive
toDebugList
,DebugMap
, andDebugTuple
libs-team#248 - Implementation: Implement
debug_more_non_exhaustive
#127945 - Final comment period (FCP)1 Tracking Issue for
debug_more_non_exhaustive
#127942 (comment) - Stabilization PR Stabilize
debug_more_non_exhaustive
#131109
Unresolved Questions
- None yet.