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

small fixes to try_unfold_array fn #7

Merged
merged 1 commit into from
Mar 20, 2020
Merged

Conversation

WaffleLapkin
Copy link
Owner

  • use *mut Item instead of *mut MaybeUninit<Item> in DropGuard because
    this points to initialized elements
  • fix typo in comment
  • use .add().write() instead of .index_mut() = ... to suppress miri (fixes miri errors on tests #5)

- use `*mut Item` instead of `*mut MaybeUninit<Item>` in `DropGuard` because
  this points to initialized elements
- fix typo in comment
- use `.add().write()` instead of `.index_mut() = ...` to suppress miri
@WaffleLapkin WaffleLapkin merged commit 6fb9f3e into master Mar 20, 2020
@WaffleLapkin WaffleLapkin deleted the try_unfold_array_clean branch March 23, 2020 16:17
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.

miri errors on tests
1 participant