rust/compiler/rustc_data_structures
Ben Kimock 6e6d0cbf83 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).
2022-03-29 11:05:24 -04:00
..
src Add debug assertions to some unsafe functions 2022-03-29 11:05:24 -04:00
Cargo.toml Add SmallStr 2022-03-04 16:57:34 +01:00