From 1170b7b4478ed1674e0b498dfa52f0f68f6426c8 Mon Sep 17 00:00:00 2001 From: James Haywood Date: Fri, 22 Sep 2023 15:52:07 -0400 Subject: [PATCH] Resolve rust-lang/rust#116063 --- library/core/src/num/uint_macros.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/library/core/src/num/uint_macros.rs b/library/core/src/num/uint_macros.rs index 23ca37817d4fd..2e9f07e6a68f4 100644 --- a/library/core/src/num/uint_macros.rs +++ b/library/core/src/num/uint_macros.rs @@ -1307,6 +1307,10 @@ macro_rules! uint_impl { /// This function exists, so that all operations /// are accounted for in the wrapping operations. /// + /// # Panics + /// + /// This function will panic if `rhs` is 0. + /// /// # Examples /// /// Basic usage: