Skip to content

TRPL is too soft on UB #26346

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

Closed
Gankra opened this issue Jun 16, 2015 · 0 comments
Closed

TRPL is too soft on UB #26346

Gankra opened this issue Jun 16, 2015 · 0 comments

Comments

@Gankra
Copy link
Contributor

Gankra commented Jun 16, 2015

from the unsafe section:

Okay, let’s try again: what is not safe to do? [list of all UB in Rust]

Doing any of these things is Undefined Behaviour that should be impossible for a safe code to do under any circumstance. Code is unsafe if there are circumstances under which it may do one of these things (bad inputs, bad state).

@Gankra Gankra added the A-docs label Jun 16, 2015
steveklabnik added a commit to steveklabnik/rust that referenced this issue Jul 7, 2015
This incorrectly implied that doing things is fine in unsafe code

Fixes rust-lang#26346
steveklabnik added a commit to steveklabnik/rust that referenced this issue Jul 7, 2015
This incorrectly implied that doing things is fine in unsafe code

Fixes rust-lang#26346
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

No branches or pull requests

1 participant