Skip to content

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

Merged
bors merged 1 commit into
rust-lang:masterfrom
cgaebel:check-sizes-on-allocate
May 12, 2015
Merged

[liballoc] Adds checks for UB during allocation.#25254
bors merged 1 commit into
rust-lang:masterfrom
cgaebel:check-sizes-on-allocate

Conversation

@cgaebel

@cgaebel cgaebel commented May 10, 2015

Copy link
Copy Markdown

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
Copy Markdown
Contributor

I think you mean @huonw ;)

@Gankra

Gankra commented May 10, 2015

Copy link
Copy Markdown
Contributor

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

Gankra commented May 11, 2015

Copy link
Copy Markdown
Contributor

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

Gankra commented May 11, 2015

Copy link
Copy Markdown
Contributor

@bors r+ rollup

@bors

bors commented May 11, 2015

Copy link
Copy Markdown
Collaborator

📌 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