about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc/example/example.rs
diff options
context:
space:
mode:
authorBen Kimock <kimockb@gmail.com>2022-01-08 23:55:09 -0500
committerBen Kimock <kimockb@gmail.com>2022-03-29 11:05:24 -0400
commit6e6d0cbf838fef856abd5b5c63d1f156c4ebfe72 (patch)
treeda08d09e5c771f37b3072c25a8df157a2e956729 /compiler/rustc_codegen_gcc/example/example.rs
parentba14a836c7038da21f5e102aacc7e6d5964f79a6 (diff)
downloadrust-6e6d0cbf838fef856abd5b5c63d1f156c4ebfe72.tar.gz
rust-6e6d0cbf838fef856abd5b5c63d1f156c4ebfe72.zip
Add debug assertions to some unsafe functions
These debug assertions are all implemented only at runtime using
`const_eval_select`, and in the error path they execute
`intrinsics::abort` instead of being a normal debug assertion to
minimize the impact of these assertions on code size, when enabled.

Of all these changes, the bounds checks for unchecked indexing are
expected to be most impactful (case in point, they found a problem in
rustc).
Diffstat (limited to 'compiler/rustc_codegen_gcc/example/example.rs')
0 files changed, 0 insertions, 0 deletions