about summary refs log tree commit diff
path: root/library/std/src/sys/mod.rs
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2024-02-16 00:27:35 +0100
committerGitHub <noreply@github.com>2024-02-16 00:27:35 +0100
commit2a216bb53bc17cfc4474589accbc8f0f497764ca (patch)
tree4afce272f4cc64bd5125481e2503988a4010d18a /library/std/src/sys/mod.rs
parente84a1dd87f1ee6491eafbc2342ea9daede420229 (diff)
parent675d092e3e69e1ca6f0abcad4b18d746e6ed558a (diff)
downloadrust-2a216bb53bc17cfc4474589accbc8f0f497764ca.tar.gz
rust-2a216bb53bc17cfc4474589accbc8f0f497764ca.zip
Rollup merge of #121155 - tspiteri:strict-doc-overflow, r=Nilstrieb
doc: add note about panicking examples for strict_overflow_ops

The first commit adds a note before the panicking examples for strict_overflow_ops to make it clearer that the following examples should panic and why, without needing the reader to hover the mouse over the information icon.

The second commit adds panicking examples for division by zero operations for strict division operations on unsigned numbers. The signed numbers already have two panicking examples each: one for division by zero and one for overflowing division (`MIN/-1`); this commit includes the division by zero examples for the unsigned numbers.
Diffstat (limited to 'library/std/src/sys/mod.rs')
0 files changed, 0 insertions, 0 deletions