Skip to content

Commit 361c978

Browse files
committed
Added docs to internal_macro const
1 parent 23d033e commit 361c978

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

library/core/src/internal_macros.rs

+3
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ macro_rules! forward_ref_unop {
99
forward_ref_unop!(impl const $imp, $method for $t,
1010
#[stable(feature = "rust1", since = "1.0.0")]);
1111
};
12+
// Equivalent to the non-const version, with the addition of `rustc_const_unstable`
1213
(impl const $imp:ident, $method:ident for $t:ty, #[$attr:meta]) => {
1314
#[$attr]
1415
#[rustc_const_unstable(feature = "const_ops", issue = "90080")]
@@ -45,6 +46,7 @@ macro_rules! forward_ref_binop {
4546
forward_ref_binop!(impl const $imp, $method for $t, $u,
4647
#[stable(feature = "rust1", since = "1.0.0")]);
4748
};
49+
// Equivalent to the non-const version, with the addition of `rustc_const_unstable`
4850
(impl const $imp:ident, $method:ident for $t:ty, $u:ty, #[$attr:meta]) => {
4951
#[$attr]
5052
#[rustc_const_unstable(feature = "const_ops", issue = "90080")]
@@ -123,6 +125,7 @@ macro_rules! forward_ref_op_assign {
123125
forward_ref_op_assign!(impl const $imp, $method for $t, $u,
124126
#[stable(feature = "op_assign_builtins_by_ref", since = "1.22.0")]);
125127
};
128+
// Equivalent to the non-const version, with the addition of `rustc_const_unstable`
126129
(impl const $imp:ident, $method:ident for $t:ty, $u:ty, #[$attr:meta]) => {
127130
#[$attr]
128131
#[rustc_const_unstable(feature = "const_ops", issue = "90080")]

0 commit comments

Comments
 (0)