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

[liballoc] Adds checks for UB during allocation. #25254

Merged
merged 1 commit into from
May 12, 2015

Conversation

cgaebel
Copy link
Contributor

@cgaebel cgaebel commented May 10, 2015

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

They're only enabled in debug builds, but a panic is usually more
welcome than UB in debug builds.
@lambda-fairy
Copy link
Contributor

I think you mean @huonw ;)

@Gankra
Copy link
Contributor

Gankra commented May 10, 2015

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.

@Gankra
Copy link
Contributor

Gankra commented May 11, 2015

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.

@Gankra
Copy link
Contributor

Gankra commented May 11, 2015

@bors r+ rollup

@bors
Copy link
Contributor

bors commented May 11, 2015

📌 Commit 101b25c has been approved by Gankro

steveklabnik added a commit to steveklabnik/rust that referenced this pull request May 11, 2015
…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
bors added a commit that referenced this pull request May 11, 2015
steveklabnik added a commit to steveklabnik/rust that referenced this pull request May 12, 2015
…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
bors added a commit that referenced this pull request May 12, 2015
@bors bors merged commit 101b25c into rust-lang:master May 12, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants