about summary refs log tree commit diff
path: root/compiler/rustc_interface/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-11-28 09:28:39 +0100
committerGitHub <noreply@github.com>2023-11-28 09:28:39 +0100
commit4f3ee302b76ac9fa403caa7d1c51124932c969a0 (patch)
tree19b7327f8f9bf01b1f0324c06720be2200198795 /compiler/rustc_interface/src
parent903789d60689101b39aed3dabf90406d4197dfa6 (diff)
parent00d5f189543f795291ab55522879dd80e2fce954 (diff)
downloadrust-4f3ee302b76ac9fa403caa7d1c51124932c969a0.tar.gz
rust-4f3ee302b76ac9fa403caa7d1c51124932c969a0.zip
Rollup merge of #118397 - Zalathar:nonzero, r=WaffleLapkin
Fix comments for unsigned non-zero `checked_add`, `saturating_add`

While looking at #118313, I happened to notice that two of the expanded comments appear to be slightly inaccurate.

For these two methods, `other` is an ordinary unsigned integer, so it can be zero.

Since the sum of non-zero and zero is always non-zero, the safety argument holds even when `other` is zero.
Diffstat (limited to 'compiler/rustc_interface/src')
0 files changed, 0 insertions, 0 deletions