From e5b667554e81efe2129f412a6eea5d8739c5f990 Mon Sep 17 00:00:00 2001 From: Aaron Kutch Date: Mon, 4 Jan 2021 09:17:44 -0600 Subject: [PATCH] Remove `count_ones` (#399) --- library/compiler-builtins/src/int/mod.rs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/library/compiler-builtins/src/int/mod.rs b/library/compiler-builtins/src/int/mod.rs index cb94803a4703..06054c84af6d 100644 --- a/library/compiler-builtins/src/int/mod.rs +++ b/library/compiler-builtins/src/int/mod.rs @@ -90,7 +90,6 @@ pub trait Int: fn aborting_div(self, other: Self) -> Self; fn aborting_rem(self, other: Self) -> Self; fn leading_zeros(self) -> u32; - fn count_ones(self) -> u32; } fn unwrap(t: Option) -> T { @@ -229,10 +228,6 @@ macro_rules! int_impl_common { fn leading_zeros(self) -> u32 { ::leading_zeros(self) } - - fn count_ones(self) -> u32 { - ::count_ones(self) - } }; }