File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -270,9 +270,10 @@ pub struct ArgumentV1<'a> {
270
270
/// of `format_args!(..)` and reduce the scope of the `unsafe` block.
271
271
#[ allow( missing_debug_implementations) ]
272
272
#[ doc( hidden) ]
273
- #[ non_exhaustive]
274
273
#[ unstable( feature = "fmt_internals" , reason = "internal to format_args!" , issue = "none" ) ]
275
- pub struct UnsafeArg ;
274
+ pub struct UnsafeArg {
275
+ _private : ( ) ,
276
+ }
276
277
277
278
impl UnsafeArg {
278
279
/// See documentation where `UnsafeArg` is required to know when it is safe to
@@ -281,7 +282,7 @@ impl UnsafeArg {
281
282
#[ unstable( feature = "fmt_internals" , reason = "internal to format_args!" , issue = "none" ) ]
282
283
#[ inline( always) ]
283
284
pub unsafe fn new ( ) -> Self {
284
- Self
285
+ Self { _private : ( ) }
285
286
}
286
287
}
287
288
You can’t perform that action at this time.
0 commit comments