mirror of
https://github.com/rust-lang/rust.git
synced 2026-06-02 06:28:20 +03:00
Update library/core/src/fmt/builders.rs
Co-authored-by: Yuki Okushi <huyuumi.dev@gmail.com>
This commit is contained in:
@@ -185,7 +185,7 @@ pub fn field(&mut self, name: &str, value: &dyn fmt::Debug) -> &mut Self {
|
||||
/// "Bar { bar: 10, .. }",
|
||||
/// );
|
||||
/// ```
|
||||
#[stable(feature = "debug_non_exhaustive", since = "1.51.0")]
|
||||
#[stable(feature = "debug_non_exhaustive", since = "1.52.0")]
|
||||
pub fn finish_non_exhaustive(&mut self) -> fmt::Result {
|
||||
self.result = self.result.and_then(|_| {
|
||||
// Draw non-exhaustive dots (`..`), and open brace if necessary (no fields).
|
||||
|
||||
Reference in New Issue
Block a user