Skip to content

Commit 312bf8e

Browse files
committed
Extend documentation of const_format_args!().
1 parent 0b8033a commit 312bf8e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

library/core/src/macros/mod.rs

+4
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)