about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSmitty <me@smitop.com>2021-07-27 16:37:18 -0400
committerSmitty <me@smitop.com>2021-07-27 16:37:18 -0400
commit0e017496eb588ac9cfe3e892fc7083996f5f3397 (patch)
tree8012625c688cab72cc488249725ee45cc75f5485
parent7abbc6e3c556eb1a46f8de64c6acd31ea2c0c637 (diff)
downloadrust-0e017496eb588ac9cfe3e892fc7083996f5f3397.tar.gz
rust-0e017496eb588ac9cfe3e892fc7083996f5f3397.zip
remove unneeded stringify
-rw-r--r--library/core/src/num/int_macros.rs4
-rw-r--r--library/core/src/num/uint_macros.rs2
2 files changed, 3 insertions, 3 deletions
diff --git a/library/core/src/num/int_macros.rs b/library/core/src/num/int_macros.rs
index 8bf2d9a6d14..e54aaae86bf 100644
--- a/library/core/src/num/int_macros.rs
+++ b/library/core/src/num/int_macros.rs
@@ -4,7 +4,7 @@ macro_rules! int_impl {
      $reversed:expr, $le_bytes:expr, $be_bytes:expr,
      $to_xe_bytes_doc:expr, $from_xe_bytes_doc:expr) => {
         /// The smallest value that can be represented by this integer type,
-        #[doc = concat!("-2<sup>", stringify!($BITS_MINUS_ONE), "</sup>.")]
+        #[doc = concat!("-2<sup>", $BITS_MINUS_ONE, "</sup>.")]
         ///
         /// # Examples
         ///
@@ -17,7 +17,7 @@ macro_rules! int_impl {
         pub const MIN: Self = !0 ^ ((!0 as $UnsignedT) >> 1) as Self;
 
         /// The largest value that can be represented by this integer type,
-        #[doc = concat!("2<sup>", stringify!($BITS_MINUS_ONE), "</sup> - 1.")]
+        #[doc = concat!("2<sup>", $BITS_MINUS_ONE, "</sup> - 1.")]
         ///
         /// # Examples
         ///
diff --git a/library/core/src/num/uint_macros.rs b/library/core/src/num/uint_macros.rs
index 0d04d1b3b42..86450712270 100644
--- a/library/core/src/num/uint_macros.rs
+++ b/library/core/src/num/uint_macros.rs
@@ -16,7 +16,7 @@ macro_rules! uint_impl {
         pub const MIN: Self = 0;
 
         /// The largest value that can be represented by this integer type,
-        #[doc = concat!("2<sup>", stringify!($BITS), "</sup> - 1.")]
+        #[doc = concat!("2<sup>", $BITS, "</sup> - 1.")]
         ///
         /// # Examples
         ///