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

Add more GhostBorrow/GhostBorrowMut impls #14

Merged
merged 1 commit into from
May 27, 2022

Conversation

konsumlamm
Copy link
Contributor

Implements GhostBorrow/GhostBorrowMut for arrays of references. Also fixes some doc comments.

The implementations use ptr::read, since mem::transmute doesn't work with const generics (see rust-lang/rust#61956). I'm pretty sure that it is safe here, but it would be good if someone could check.

@matthieu-m matthieu-m merged commit 162041e into matthieu-m:master May 27, 2022
@konsumlamm konsumlamm deleted the ghost-borrow branch May 27, 2022 16:25
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.

2 participants