diff options
| author | Mara Bos <m-ou.se@m-ou.se> | 2021-07-10 18:45:28 +0200 |
|---|---|---|
| committer | Mara Bos <m-ou.se@m-ou.se> | 2021-07-28 16:18:38 +0200 |
| commit | 312bf8e0b8122fd681adf28f65e88f8d15f7a34c (patch) | |
| tree | 1d3df69238fa3f5b46574d39bf4576db0c68b6c1 | |
| parent | 0b8033ad8d320c05ec24de5b4538099f6c3b2e4d (diff) | |
| download | rust-312bf8e0b8122fd681adf28f65e88f8d15f7a34c.tar.gz rust-312bf8e0b8122fd681adf28f65e88f8d15f7a34c.zip | |
Extend documentation of const_format_args!().
| -rw-r--r-- | library/core/src/macros/mod.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/library/core/src/macros/mod.rs b/library/core/src/macros/mod.rs index 7568565cf59..50fefb82731 100644 --- a/library/core/src/macros/mod.rs +++ b/library/core/src/macros/mod.rs @@ -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)] |
