Commit 44b5d4d
authored
Rollup merge of rust-lang#60972 - RalfJung:volatile, r=alexcrichton
remove confusing remarks about mixed volatile and non-volatile accesses
These comments were originally added by @ecstatic-morse in rust-lang@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](rust-lang#58599 (comment)), which -- to my knowledge -- they are not. So better remove this.
Cc @rkruppe @rust-lang/wg-unsafe-code-guidelines1 file changed
+0
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
810 | 810 | | |
811 | 811 | | |
812 | 812 | | |
813 | | - | |
814 | | - | |
815 | | - | |
816 | 813 | | |
817 | 814 | | |
818 | 815 | | |
| |||
881 | 878 | | |
882 | 879 | | |
883 | 880 | | |
884 | | - | |
885 | | - | |
886 | | - | |
887 | 881 | | |
888 | 882 | | |
889 | 883 | | |
| |||
0 commit comments