-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
#62357: doc(ptr): add example for {read,write}_unaligned #62493
#62357: doc(ptr): add example for {read,write}_unaligned #62493
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 :) |
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.
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