Skip to content

Commit

Permalink
Extend documentation of const_format_args!().
Browse files Browse the repository at this point in the history
  • Loading branch information
m-ou-se committed Jul 28, 2021
1 parent 0b8033a commit 312bf8e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions library/core/src/macros/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -838,6 +838,10 @@ pub(crate) mod builtin {
}

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

0 comments on commit 312bf8e

Please sign in to comment.