]> git.lizzy.rs Git - rust.git/commitdiff
Extend documentation of const_format_args!().
authorMara Bos <m-ou.se@m-ou.se>
Sat, 10 Jul 2021 16:45:28 +0000 (18:45 +0200)
committerMara Bos <m-ou.se@m-ou.se>
Wed, 28 Jul 2021 14:18:38 +0000 (16:18 +0200)
library/core/src/macros/mod.rs

index 7568565cf59d70ba43087d70f03975974410f2d5..50fefb8273199268c7b95c98308b2d6acb5b5871 100644 (file)
@@ -838,6 +838,10 @@ macro_rules! format_args {
     }
 
     /// 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)]