Skip to content

Commit c282b7b

Browse files
committed
Extend documentation of const_format_args!().
1 parent 3a0226d commit c282b7b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

core/src/macros/mod.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -838,6 +838,10 @@ pub(crate) mod builtin {
838838
}
839839

840840
/// Same as `format_args`, but can be used in some const contexts.
841+
///
842+
/// This macro is used by the panic macros for the `const_panic` feature.
843+
///
844+
/// This macro will be removed once `format_args` is allowed in const contexts.
841845
#[cfg(not(bootstrap))]
842846
#[unstable(feature = "const_format_args", issue = "none")]
843847
#[allow_internal_unstable(fmt_internals, const_fmt_arguments_new)]

0 commit comments

Comments
 (0)