-
Notifications
You must be signed in to change notification settings - Fork 13.3k
[liballoc] Adds checks for UB during allocation. #25254
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
Conversation
They're only enabled in debug builds, but a panic is usually more welcome than UB in debug builds.
I think you mean @huonw ;) |
I'm a fan of this. Wanna discuss with some others what exactly we "want" out of debug asserts. Particularly in unsafe vs safe APIs. |
So discussing with @alexcrichton it seems like a stable release will have all of these stripped irreversibly. These will only be "active" for basically compiler-compilers and people rolling a custom build with debug enabled. As such I think this is fine to land. |
@bors r+ rollup |
📌 Commit 101b25c has been approved by |
…Gankro They're only enabled in debug builds, but a panic is usually more welcome than UB in debug builds. Previous review at rust-lang#22069 r? @gankro cc @huon
…Gankro They're only enabled in debug builds, but a panic is usually more welcome than UB in debug builds. Previous review at rust-lang#22069 r? @gankro cc @huon
They're only enabled in debug builds, but a panic is usually more
welcome than UB in debug builds.
Previous review at #22069
r? @gankro
cc @huon