Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Replace all calls of mem::uninitialized with mem::MaybeUninit #10853

Closed

Conversation

ryanleecode
Copy link

This PR replaces all calls of mem::uninitialized with mem::MaybeUninit::uninit().assume_init.

This fixes #10842

@parity-cla-bot
Copy link

It looks like @drdgvhbh hasn't signed our Contributor License Agreement, yet.

The purpose of a CLA is to ensure that the guardian of a project's outputs has the necessary ownership or grants of rights over all contributions to allow them to distribute under the chosen licence.
Wikipedia

You can read and sign our full Contributor License Agreement at the following URL: https://cla.parity.io

Once you've signed, please reply to this thread with [clabot:check] to prove it.

Many thanks,

Parity Technologies CLA Bot

@ryanleecode
Copy link
Author

[clabot:check]

@parity-cla-bot
Copy link

It looks like @drdgvhbh signed our Contributor License Agreement. 👍

Many thanks,

Parity Technologies CLA Bot

@ryanleecode ryanleecode force-pushed the drdgvhbh-10842-MaybeUninit branch from 0d84f8b to 9462b1b Compare July 6, 2019 18:29
@ordian ordian added the A4-gotissues 💥 Pull request is reviewed and has significant issues which must be addressed. label Jul 6, 2019
@ordian ordian added this to the 2.7 milestone Jul 6, 2019
Uses assume_init where we know we have initialized memory and casting elsewhere.
@ordian
Copy link
Member

ordian commented Jul 12, 2019

closing if favor of #10861

@ordian ordian closed this Jul 12, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A4-gotissues 💥 Pull request is reviewed and has significant issues which must be addressed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove all uses of mem::uninitialized
4 participants