Skip to content

Commit

Permalink
Unrolled build for rust-lang#124700
Browse files Browse the repository at this point in the history
Rollup merge of rust-lang#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.
  • Loading branch information
rust-timer authored May 4, 2024
2 parents 7dd170f + b95d1b7 commit f19ee87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/core/src/num/uint_macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Expand Down

0 comments on commit f19ee87

Please sign in to comment.