Repository navigation
Closed
Labels
A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsC-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCE-help-wantedCall for participation: Help is requested to fix this issue.E-mediumCall for participation: Medium difficulty. Experience needed to fix: Intermediate.E-mentorCall for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.P-mediumMedium priority
Description
Part of #29329
http://doc.rust-lang.org/std/ptr/
Here's what needs to be done to close out this issue:
- the module docs act like this is about
*const T/*mut T, but it's really about common functions that work with them. -
copycould link tomemmovesomewhere. -
copy_nonoverlappingshould link tomemcpy. Both of these functions should talk more about what "overlapping" means here. -
drop_in_placeneeds links and examples -
readneeds to explain why and where you should use it, as well as linking some stuff. -
read_volitileneeds links -
replaceshould link tomem::replace, and justify its unsafety better. -
swapneeds to split out its summary from its description, link tomem::swap, and get an example. -
writeneeds to explain when and where to use it, and to link some types -
write_bytesneeds to better justify itself, linkmemset, and move that out of its summary line. -
write_volatileneeds to linkread.
Metadata
Metadata
Assignees
Labels
A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsC-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCE-help-wantedCall for participation: Help is requested to fix this issue.E-mediumCall for participation: Medium difficulty. Experience needed to fix: Intermediate.E-mentorCall for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.P-mediumMedium priority
Activity
Rollup merge of rust-lang#32956 - GuillaumeGomez:ptr_examples, r=stev…
Rollup merge of rust-lang#35880 - matthew-piziak:ptr-linking, r=steve…
Rollup merge of rust-lang#35880 - matthew-piziak:ptr-linking, r=steve…
steveklabnik commentedon Mar 8, 2017
I am happy to mentor anyone who wants to tackle this issue.
bandali commentedon Mar 25, 2017
@steveklabnik I'd like to help tackle this by taking on some of the items. Any general suggestions before I get started?
I also have one question: any preference as to what website to use for linking to C standard library functions? How does this look for
memmove?steveklabnik commentedon Mar 27, 2017
Wonderful! I left a bunch of related-ish comments on https://www.reddit.com/r/rust/comments/61avqf/want_to_join_the_rust_docs_team/?st=j0s6zfg8&sh=79419433. Of course, this whole exercise has brought up a meta issue, which is that our "how to contribute to docs" docs aren't as awesome as they could be. I'm gonna try to work on that 😄
This is a good question. I am not sure.
I haven't heard of this website before and I'm slightly skpetical of a wiki. I asked on Twitter, and got a number of responses:
I think I'm leaning towards MSDN here.
3 remaining items
chordowl commentedon Aug 9, 2017
Hey there @hinaria and @aminb! I'm currently going over the remaining API tracking issues and saw your comments here. Are you still interested in helping out with this?
GuillaumeGomez commentedon Aug 10, 2017
@lukaramu @hinaria: Want me to assign it to both of you "officially"?
bandali commentedon Aug 10, 2017
Hi all, sorry for my absence.
I still like to do
copyandcopy_nonoverlappingat the very least, but @lukaramu and @hinaria feel free to split the rest.chordowl commentedon Aug 11, 2017
@GuillaumeGomez I'll tackle other modules first since there are people working on this one, thanks for asking though!
QuietMisdreavus commentedon Sep 13, 2017
I'm folding #36450 into this issue; basically, make sure that each function also mentions its requirements w.r.t. alignment. (Generally speaking, unless it says
_unaligned, it needs the pointer to have the same alignment as the type.)QuietMisdreavus commentedon Nov 6, 2017
No worries! Glad you're feeling better!
ecstatic-morse commentedon Apr 6, 2018
Newbie here,
If no one's currently working on this, I'd like to pick it up.
I've added the requisite information to
copyandcopy_nonoverlapping. I'm using the GNU libc docs for links tomemcpyandmemmove.A few questions:
write_bytesrequire its argument to be properly aligned?stdseems to use "Safety".Thanks!
steveklabnik commentedon Apr 6, 2018
@ecstatic-morse that'd be great!
Rollup merge of rust-lang#49767 - ecstatic-morse:ptr-docs, r=stevekla…
Rollup merge of rust-lang#49767 - ecstatic-morse:ptr-docs, r=stevekla…
GuillaumeGomez commentedon May 15, 2018
I'll reopen this issue because it doesn't feel like it's actually fixed.
steveklabnik commentedon Jan 8, 2019
Triage: I have looked at all of the individual checkboxes, and 99% of the work here is done. I think these massive tracking issues have served their purpose; if you'd like to see more improvements to the
ptrdocs, please open one, focused issue for each improvement, and we can tackle them!