Skip to content

remove confusing remarks about mixed volatile and non-volatile accesses#60972

Merged
bors merged 1 commit intorust-lang:masterfrom
RalfJung:volatile
May 21, 2019
Merged

remove confusing remarks about mixed volatile and non-volatile accesses#60972
bors merged 1 commit intorust-lang:masterfrom
RalfJung:volatile

Conversation

@RalfJung
Copy link
Member

These comments were originally added by @ecstatic-morse in 911d35f and then later edited by me. The intention, I think, was to make sure people do both their reads and writes with these methods if the affected memory really is used for communication with external devices.

However, people read this as saying that mixed volatile/non-volatile accesses are UB, which -- to my knowledge -- they are not. So better remove this.

Cc @rkruppe @rust-lang/wg-unsafe-code-guidelines

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants