Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add debug assertions to some unsafe functions #92686

Merged
merged 1 commit into from
Apr 3, 2022

Commits on Mar 29, 2022

  1. 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).
    saethlin committed Mar 29, 2022
    Configuration menu
    Copy the full SHA
    6e6d0cb View commit details
    Browse the repository at this point in the history