about summary refs log tree commit diff
path: root/compiler/rustc_pattern_analysis/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-05-04 12:37:24 +0200
committerGitHub <noreply@github.com>2024-05-04 12:37:24 +0200
commit5f4f4fbb989b3f966b4fc1fd7bd3d5089c458cd2 (patch)
tree680548d5172900e069bd0e4eb807a76f2cb4b9c6 /compiler/rustc_pattern_analysis/src
parent770567101cf2f67416b09818b89afb22aa5eaa8f (diff)
parente1c833eb076efc5aef95d5c8ec9a410d8738def4 (diff)
downloadrust-5f4f4fbb989b3f966b4fc1fd7bd3d5089c458cd2.tar.gz
rust-5f4f4fbb989b3f966b4fc1fd7bd3d5089c458cd2.zip
Rollup merge of #124701 - scottmcm:unchecked_sub_docs, r=Nilstrieb
Docs: suggest `uN::checked_sub` instead of check-then-unchecked

As of #124114 it's exactly the same in codegen, so might as well not use `unsafe`.

Note that this is only for *unsigned*, since the overflow conditions for `iN::checked_sub` are more complicated.
Diffstat (limited to 'compiler/rustc_pattern_analysis/src')
0 files changed, 0 insertions, 0 deletions