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> {
270270/// of `format_args!(..)` and reduce the scope of the `unsafe` block.
271271#[ allow( missing_debug_implementations) ]
272272#[ doc( hidden) ]
273- #[ non_exhaustive]
274273#[ unstable( feature = "fmt_internals" , reason = "internal to format_args!" , issue = "none" ) ]
275- pub struct UnsafeArg ;
274+ pub struct UnsafeArg {
275+ _private : ( ) ,
276+ }
276277
277278impl UnsafeArg {
278279 /// See documentation where `UnsafeArg` is required to know when it is safe to
@@ -281,7 +282,7 @@ impl UnsafeArg {
281282 #[ unstable( feature = "fmt_internals" , reason = "internal to format_args!" , issue = "none" ) ]
282283 #[ inline( always) ]
283284 pub unsafe fn new ( ) -> Self {
284- Self
285+ Self { _private : ( ) }
285286 }
286287}
287288
You can’t perform that action at this time.
0 commit comments