about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJames Haywood <jameshaywood@fastmail.com>2023-09-22 15:52:07 -0400
committerJames Haywood <jameshaywood@fastmail.com>2023-09-22 15:52:07 -0400
commit1170b7b4478ed1674e0b498dfa52f0f68f6426c8 (patch)
tree9db0189f91975443cac656e488e1a5b47899f137
parent959b2c703d45f06962da3afa086bdda70d42efcf (diff)
downloadrust-1170b7b4478ed1674e0b498dfa52f0f68f6426c8.tar.gz
rust-1170b7b4478ed1674e0b498dfa52f0f68f6426c8.zip
Resolve rust-lang/rust#116063
-rw-r--r--library/core/src/num/uint_macros.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/library/core/src/num/uint_macros.rs b/library/core/src/num/uint_macros.rs
index 23ca37817d4..2e9f07e6a68 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: