@@ -84,7 +84,7 @@ impl<'a> fmt::Write for PadAdapter<'a> {
84
84
/// // prints "Foo { bar: 10, baz: "Hello World" }"
85
85
/// println!("{:?}", Foo { bar: 10, baz: "Hello World".to_string() });
86
86
/// ```
87
- #[ must_use]
87
+ #[ must_use = "must eventually call `finish()` on Debug builders" ]
88
88
#[ allow( missing_debug_implementations) ]
89
89
#[ stable( feature = "debug_builders" , since = "1.2.0" ) ]
90
90
pub struct DebugStruct < ' a , ' b : ' a > {
@@ -181,7 +181,7 @@ impl<'a, 'b: 'a> DebugStruct<'a, 'b> {
181
181
/// // prints "Foo(10, "Hello World")"
182
182
/// println!("{:?}", Foo(10, "Hello World".to_string()));
183
183
/// ```
184
- #[ must_use]
184
+ #[ must_use = "must eventually call `finish()` on Debug builders" ]
185
185
#[ allow( missing_debug_implementations) ]
186
186
#[ stable( feature = "debug_builders" , since = "1.2.0" ) ]
187
187
pub struct DebugTuple < ' a , ' b : ' a > {
@@ -319,7 +319,7 @@ impl<'a, 'b: 'a> DebugInner<'a, 'b> {
319
319
/// // prints "{10, 11}"
320
320
/// println!("{:?}", Foo(vec![10, 11]));
321
321
/// ```
322
- #[ must_use]
322
+ #[ must_use = "must eventually call `finish()` on Debug builders" ]
323
323
#[ allow( missing_debug_implementations) ]
324
324
#[ stable( feature = "debug_builders" , since = "1.2.0" ) ]
325
325
pub struct DebugSet < ' a , ' b : ' a > {
@@ -390,7 +390,7 @@ impl<'a, 'b: 'a> DebugSet<'a, 'b> {
390
390
/// // prints "[10, 11]"
391
391
/// println!("{:?}", Foo(vec![10, 11]));
392
392
/// ```
393
- #[ must_use]
393
+ #[ must_use = "must eventually call `finish()` on Debug builders" ]
394
394
#[ allow( missing_debug_implementations) ]
395
395
#[ stable( feature = "debug_builders" , since = "1.2.0" ) ]
396
396
pub struct DebugList < ' a , ' b : ' a > {
@@ -461,7 +461,7 @@ impl<'a, 'b: 'a> DebugList<'a, 'b> {
461
461
/// // prints "{"A": 10, "B": 11}"
462
462
/// println!("{:?}", Foo(vec![("A".to_string(), 10), ("B".to_string(), 11)]));
463
463
/// ```
464
- #[ must_use]
464
+ #[ must_use = "must eventually call `finish()` on Debug builders" ]
465
465
#[ allow( missing_debug_implementations) ]
466
466
#[ stable( feature = "debug_builders" , since = "1.2.0" ) ]
467
467
pub struct DebugMap < ' a , ' b : ' a > {
0 commit comments