@@ -2152,7 +2152,8 @@ macro_rules! int_impl {
21522152 ///
21532153 /// # Panics
21542154 ///
2155- /// This function will panic if `rhs` is 0 or the division results in overflow.
2155+ /// This function will panic if `rhs` is 0 or if `self` is -1 and `rhs` is
2156+ /// `Self::MIN`. This behavior is not affected by the `overflow-checks` flag.
21562157 ///
21572158 /// # Examples
21582159 ///
@@ -2190,7 +2191,8 @@ macro_rules! int_impl {
21902191 ///
21912192 /// # Panics
21922193 ///
2193- /// This function will panic if `rhs` is 0 or the division results in overflow.
2194+ /// This function will panic if `rhs` is 0 or if `self` is -1 and `rhs` is
2195+ /// `Self::MIN`. This behavior is not affected by the `overflow-checks` flag.
21942196 ///
21952197 /// # Examples
21962198 ///
@@ -2233,12 +2235,8 @@ macro_rules! int_impl {
22332235 ///
22342236 /// # Panics
22352237 ///
2236- /// This function will panic if `rhs` is zero.
2237- ///
2238- /// ## Overflow behavior
2239- ///
2240- /// On overflow, this function will panic if overflow checks are enabled (default in debug
2241- /// mode) and wrap if overflow checks are disabled (default in release mode).
2238+ /// This function will panic if `rhs` is 0 or if `self` is -1 and `rhs` is
2239+ /// `Self::MIN`. This behavior is not affected by the `overflow-checks` flag.
22422240 ///
22432241 /// # Examples
22442242 ///
@@ -2273,12 +2271,8 @@ macro_rules! int_impl {
22732271 ///
22742272 /// # Panics
22752273 ///
2276- /// This function will panic if `rhs` is zero.
2277- ///
2278- /// ## Overflow behavior
2279- ///
2280- /// On overflow, this function will panic if overflow checks are enabled (default in debug
2281- /// mode) and wrap if overflow checks are disabled (default in release mode).
2274+ /// This function will panic if `rhs` is 0 or if `self` is -1 and `rhs` is
2275+ /// `Self::MIN`. This behavior is not affected by the `overflow-checks` flag.
22822276 ///
22832277 /// # Examples
22842278 ///
0 commit comments