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

Document how ptr::drop_in_place behaves when dropping a slice panics #64407

Open
gnzlbg opened this issue Sep 12, 2019 · 1 comment
Open

Document how ptr::drop_in_place behaves when dropping a slice panics #64407

gnzlbg opened this issue Sep 12, 2019 · 1 comment
Labels
A-docs Area: documentation for any part of the project, including the compiler, standard library, and tools A-FFI Area: Foreign function interface (FFI) C-enhancement Category: An issue proposing an enhancement or a PR with one. T-lang Relevant to the language team, which will review and decide on the PR/issue.

Comments

@gnzlbg
Copy link
Contributor

gnzlbg commented Sep 12, 2019

When dropping a slice [T] using ptr::drop_in_place, a T::drop can panic. I can't find any documentation of what the behavior of the program is in that case.

@jonas-schievink jonas-schievink added A-FFI Area: Foreign function interface (FFI) C-enhancement Category: An issue proposing an enhancement or a PR with one. A-docs Area: documentation for any part of the project, including the compiler, standard library, and tools T-libs-api Relevant to the library API team, which will review and decide on the PR/issue. labels Sep 12, 2019
@gnzlbg
Copy link
Contributor Author

gnzlbg commented Sep 12, 2019

I've posted on the open issue in the reference (rust-lang/reference#348 (comment)). Once that is resolved, we should update the docs here:

@Centril Centril added T-lang Relevant to the language team, which will review and decide on the PR/issue. and removed T-libs-api Relevant to the library API team, which will review and decide on the PR/issue. labels Sep 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-docs Area: documentation for any part of the project, including the compiler, standard library, and tools A-FFI Area: Foreign function interface (FFI) C-enhancement Category: An issue proposing an enhancement or a PR with one. T-lang Relevant to the language team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

3 participants