-
Notifications
You must be signed in to change notification settings - Fork 156
unsafe write_with_zero #502
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
Conversation
(rust-highfive has picked a reviewer for you, use r? to override) |
r? @therealprof |
I agree, this seems a shame but it fits our current safety model. Please could you add a note to the changelog? |
How about merging #500? 😉 |
da4a4f0
to
9a59425
Compare
@burrbull maybe we could leave it safe if the reset value is 0 and not otherwise? or also if all fields are covered, the same way the register-level |
In this way we need to implement own |
I think this is fine and makes sense. @adamgreig Any objections to merging it? |
Oh, yea, you're right of course. Never mind. @therealprof yep let's merge. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alright then.
bors r+
As 0 is not always correct value,
write_with_zero
can't be safe for all registers.