We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 69eb996 + f5e4f78 commit ed93759Copy full SHA for ed93759
library/core/src/fmt/mod.rs
@@ -270,9 +270,10 @@ pub struct ArgumentV1<'a> {
270
/// of `format_args!(..)` and reduce the scope of the `unsafe` block.
271
#[allow(missing_debug_implementations)]
272
#[doc(hidden)]
273
-#[non_exhaustive]
274
#[unstable(feature = "fmt_internals", reason = "internal to format_args!", issue = "none")]
275
-pub struct UnsafeArg;
+pub struct UnsafeArg {
+ _private: (),
276
+}
277
278
impl UnsafeArg {
279
/// See documentation where `UnsafeArg` is required to know when it is safe to
@@ -281,7 +282,7 @@ impl UnsafeArg {
281
282
283
#[inline(always)]
284
pub unsafe fn new() -> Self {
- Self
285
+ Self { _private: () }
286
}
287
288
0 commit comments