From cefaf7728ff252c25b09609d714c6f9a74302205 Mon Sep 17 00:00:00 2001 From: DaniPopes <57450786+DaniPopes@users.noreply.github.com> Date: Wed, 23 Apr 2025 23:06:35 +0200 Subject: [PATCH] Remove outdated comment in integer signum Obsoleted by https://github.com/rust-lang/rust/pull/137835/ --- library/core/src/num/int_macros.rs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/library/core/src/num/int_macros.rs b/library/core/src/num/int_macros.rs index 05d8216ac27eb..c6570b9ef4290 100644 --- a/library/core/src/num/int_macros.rs +++ b/library/core/src/num/int_macros.rs @@ -3566,11 +3566,6 @@ macro_rules! int_impl { without modifying the original"] #[inline(always)] pub const fn signum(self) -> Self { - // Picking the right way to phrase this is complicated - // () - // so delegate it to `Ord` which is already producing -1/0/+1 - // exactly like we need and can be the place to deal with the complexity. - crate::intrinsics::three_way_compare(self, 0) as Self }