#62357: doc(ptr): add example for {read,write}_unaligned#62493
#62357: doc(ptr): add example for {read,write}_unaligned#62493bors merged 1 commit intorust-lang:masterfrom
Conversation
|
r? @Kimundi (rust_highfive has picked a reviewer for you, use r? to override) |
|
r? @RalfJung |
|
Thanks a lot! Also, this PR is marked as not-yet-ready-for-review? |
|
@ralfbiedert Yes I marked it has draft because it's one of my first PR, didn't know if I needed to do it before switching to "ready for review". |
|
Well, if you want it to be reviewed, then mark it as ready for that. :) |
|
@Freyskeyd I guess you mean @RalfJung :) |
6750518 to
185dda3
Compare
185dda3 to
7ef7e93
Compare
|
Thanks! CI is failing, though. From glancing at the logs it seems the problem is just that |
Signed-off-by: Freyskeyd <simon.paitrault@gmail.com>
7ef7e93 to
bc322af
Compare
|
@rkruppe is it ok for you ? :) |
|
CI passes, that's good :) Thanks again! @bors r+ rollup |
|
📌 Commit bc322af has been approved by |
…unaligned, r=rkruppe rust-lang#62357: doc(ptr): add example for {read,write}_unaligned related to rust-lang#62357 > With rust-lang#62323 the only example (that had UB and was thus invalid) in std::ptr::read_unaligned and std::ptr::write_unaligned is removed. > We should add a valid example of using the aforementioned functions. Signed-off-by: Freyskeyd <simon.paitrault@gmail.com>
Rollup of 5 pull requests Successful merges: - #62275 (rustc_mir: treat DropAndReplace as Drop + Assign in qualify_consts.) - #62465 (Sometimes generate storage statements for temporaries with type `!`) - #62481 (Use `fold` in `Iterator::last` default implementation) - #62493 (#62357: doc(ptr): add example for {read,write}_unaligned) - #62532 (Some more cleanups to syntax::print) Failed merges: r? @ghost
Rollup of 5 pull requests Successful merges: - #62275 (rustc_mir: treat DropAndReplace as Drop + Assign in qualify_consts.) - #62465 (Sometimes generate storage statements for temporaries with type `!`) - #62481 (Use `fold` in `Iterator::last` default implementation) - #62493 (#62357: doc(ptr): add example for {read,write}_unaligned) - #62532 (Some more cleanups to syntax::print) Failed merges: r? @ghost
|
☔ The latest upstream changes (presumably #62561) made this pull request unmergeable. Please resolve the merge conflicts. |
related to #62357
Signed-off-by: Freyskeyd simon.paitrault@gmail.com