about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAlexApps99 <alex.apps99@gmail.com>2021-10-21 12:26:26 +1300
committerAlexApps99 <alex.apps99@gmail.com>2021-10-22 10:07:35 +1300
commit361c978fbd41535f3c7fd0b2f956d4e1ee4aeefd (patch)
treef86fcdb56d201b3aaefc02f296215d1b83084cea
parent23d033e17788d828aad233ff7c55652ac310d0b8 (diff)
downloadrust-361c978fbd41535f3c7fd0b2f956d4e1ee4aeefd.tar.gz
rust-361c978fbd41535f3c7fd0b2f956d4e1ee4aeefd.zip
Added docs to internal_macro const
-rw-r--r--library/core/src/internal_macros.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/library/core/src/internal_macros.rs b/library/core/src/internal_macros.rs
index b5c1bf6897c..9c6acfb1e8c 100644
--- a/library/core/src/internal_macros.rs
+++ b/library/core/src/internal_macros.rs
@@ -9,6 +9,7 @@ macro_rules! forward_ref_unop {
         forward_ref_unop!(impl const $imp, $method for $t,
                 #[stable(feature = "rust1", since = "1.0.0")]);
     };
+    // Equivalent to the non-const version, with the addition of `rustc_const_unstable`
     (impl const $imp:ident, $method:ident for $t:ty, #[$attr:meta]) => {
         #[$attr]
         #[rustc_const_unstable(feature = "const_ops", issue = "90080")]
@@ -45,6 +46,7 @@ macro_rules! forward_ref_binop {
         forward_ref_binop!(impl const $imp, $method for $t, $u,
                 #[stable(feature = "rust1", since = "1.0.0")]);
     };
+    // Equivalent to the non-const version, with the addition of `rustc_const_unstable`
     (impl const $imp:ident, $method:ident for $t:ty, $u:ty, #[$attr:meta]) => {
         #[$attr]
         #[rustc_const_unstable(feature = "const_ops", issue = "90080")]
@@ -123,6 +125,7 @@ macro_rules! forward_ref_op_assign {
         forward_ref_op_assign!(impl const $imp, $method for $t, $u,
                 #[stable(feature = "op_assign_builtins_by_ref", since = "1.22.0")]);
     };
+    // Equivalent to the non-const version, with the addition of `rustc_const_unstable`
     (impl const $imp:ident, $method:ident for $t:ty, $u:ty, #[$attr:meta]) => {
         #[$attr]
         #[rustc_const_unstable(feature = "const_ops", issue = "90080")]