about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-05-04 12:37:24 +0200
committerGitHub <noreply@github.com>2024-05-04 12:37:24 +0200
commit770567101cf2f67416b09818b89afb22aa5eaa8f (patch)
tree9cd25cbc6cb47c3eb51899d67d49365f615a9a5e
parentb8711373cd7a44a247c5547b4453258d80908f91 (diff)
parentb95d1b716f938b1ae0fb42fc2cb1ddb94a7b7166 (diff)
downloadrust-770567101cf2f67416b09818b89afb22aa5eaa8f.tar.gz
rust-770567101cf2f67416b09818b89afb22aa5eaa8f.zip
Rollup merge of #124700 - scottmcm:unneeded_cast, r=Nilstrieb
Remove an unnecessary cast

Very minor thing, obviously, but I randomly saw this unnecessary cast showing up in the UbChecks, so might as well get rid of it.
-rw-r--r--library/core/src/num/uint_macros.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/core/src/num/uint_macros.rs b/library/core/src/num/uint_macros.rs
index 9effa279b48..6682f875eb8 100644
--- a/library/core/src/num/uint_macros.rs
+++ b/library/core/src/num/uint_macros.rs
@@ -77,7 +77,7 @@ macro_rules! uint_impl {
                       without modifying the original"]
         #[inline(always)]
         pub const fn count_ones(self) -> u32 {
-            return intrinsics::ctpop(self as $ActualT);
+            return intrinsics::ctpop(self);
         }
 
         /// Returns the number of zeros in the binary representation of `self`.