From 13bfbb42530321e528bd10e5301ba83db8973b8f Mon Sep 17 00:00:00 2001 From: Mara Bos Date: Wed, 16 Jun 2021 17:02:52 +0200 Subject: [PATCH] Fix comment about rustc_inherit_overflow_checks in abs(). --- library/core/src/num/int_macros.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/library/core/src/num/int_macros.rs b/library/core/src/num/int_macros.rs index a0efe681285..2e466106fe5 100644 --- a/library/core/src/num/int_macros.rs +++ b/library/core/src/num/int_macros.rs @@ -1772,9 +1772,9 @@ pub const fn rem_euclid(self, rhs: Self) -> Self { #[inline] #[rustc_inherit_overflow_checks] pub const fn abs(self) -> Self { - // Note that the #[inline] above means that the overflow - // semantics of the subtraction depend on the crate we're being - // inlined into. + // Note that the #[rustc_inherit_overflow_checks] and #[inline] + // above mean that the overflow semantics of the subtraction + // depend on the crate we're being called from. if self.is_negative() { -self } else {