Skip to content
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

add links to interesting items in std::ptr documentation #35880

Closed
wants to merge 1 commit into from

Conversation

matthew-piziak
Copy link
Contributor

@matthew-piziak matthew-piziak commented Aug 21, 2016

Part of #29371.

r? @steveklabnik

@@ -224,15 +224,17 @@ extern "rust-intrinsic" {
/// trait objects, because they can't be read out onto the stack and
/// dropped normally.
///
/// * It is friendlier to the optimizer to do this over `ptr::read` when
/// * It is friendlier to the optimizer to do this over [`ptr::read`] when
/// dropping manually allocated memory (e.g. when writing Box/Rc/Vec),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add urls for Box, Rc and Vec as well please? (If you really don't want to, I won't bother you with it.)

@steveklabnik
Copy link
Member

@bors: r+ rollup

@bors
Copy link
Contributor

bors commented Aug 25, 2016

📌 Commit 33560ee has been approved by steveklabnik

steveklabnik added a commit to steveklabnik/rust that referenced this pull request Aug 25, 2016
…klabnik

add links to interesting items in `std::ptr` documentation

r? @steveklabnik
steveklabnik added a commit to steveklabnik/rust that referenced this pull request Aug 26, 2016
…klabnik

add links to interesting items in `std::ptr` documentation

r? @steveklabnik
steveklabnik added a commit to steveklabnik/rust that referenced this pull request Aug 26, 2016
…klabnik

add links to interesting items in `std::ptr` documentation

r? @steveklabnik
Manishearth added a commit to Manishearth/rust that referenced this pull request Aug 27, 2016
…klabnik

add links to interesting items in `std::ptr` documentation

r? @steveklabnik
@GuillaumeGomez
Copy link
Member

GuillaumeGomez commented Aug 29, 2016

Broken:

std\ptr\fn.read.html:59: broken link - std\ptr\fn.zero_memory.html
std\ptr\fn.read.html:59: broken link - std\ptr\fn.copy_memory.html
std\ptr\fn.read_volatile.html:69: broken link - std\ptr\fn.zero_memory.html
std\ptr\fn.read_volatile.html:69: broken link - std\ptr\fn.copy_memory.html

(and some others)

@bors: r-

@matthew-piziak
Copy link
Contributor Author

@GuillaumeGomez What is the correct command to reproduce this breakage? I cannot reproduce with make docs.

@GuillaumeGomez
Copy link
Member

cd src/tools/linkchecker
cargo run ../../lib_you_want_to_check

@matthew-piziak
Copy link
Contributor Author

Have copy_memory and zero_memory been removed? (I wouldn't be surprised. They were experimental before.)

@GuillaumeGomez
Copy link
Member

Check on nigthly docs.

@matthew-piziak
Copy link
Contributor Author

@GuillaumeGomez I tried that. I'd expect to see them here: https://doc.rust-lang.org/nightly/std/mem/

@GuillaumeGomez
Copy link
Member

These two functions have been removed it seems, indeed.

@steveklabnik
Copy link
Member

Travis looks spurious, let's try with bors.

@bors: r+ rollup

@bors
Copy link
Contributor

bors commented Sep 1, 2016

📌 Commit b5ce02c has been approved by steveklabnik

sophiajt pushed a commit to sophiajt/rust that referenced this pull request Sep 2, 2016
…klabnik

add links to interesting items in `std::ptr` documentation

Part of rust-lang#29371.

r? @steveklabnik
sophiajt pushed a commit to sophiajt/rust that referenced this pull request Sep 2, 2016
…klabnik

add links to interesting items in `std::ptr` documentation

Part of rust-lang#29371.

r? @steveklabnik
@sophiajt
Copy link
Contributor

sophiajt commented Sep 2, 2016

@bors r-

Looks like there some breakages on x86_64-unknown-linux-gnu

core/intrinsics/fn.drop_in_place.html:59: broken link - core/intrinsics/fn.read.html
core/intrinsics/fn.drop_in_place.html:61: broken link - core/boxed/struct.Box.html
core/intrinsics/fn.drop_in_place.html:61: broken link - core/rc/struct.Rc.html
core/intrinsics/fn.drop_in_place.html:61: broken link - core/vec/struct.Vec.html
core/intrinsics/fn.drop_in_place.html:66: broken link - core/intrinsics/fn.read.html
std/intrinsics/fn.drop_in_place.html:59: broken link - std/intrinsics/fn.read.html
std/intrinsics/fn.drop_in_place.html:66: broken link - std/intrinsics/fn.read.html

@GuillaumeGomez
Copy link
Member

Failed:

core/intrinsics/fn.drop_in_place.html:59: broken link - core/intrinsics/fn.read.html
core/intrinsics/fn.drop_in_place.html:61: broken link - core/boxed/struct.Box.html
core/intrinsics/fn.drop_in_place.html:61: broken link - core/rc/struct.Rc.html
core/intrinsics/fn.drop_in_place.html:61: broken link - core/vec/struct.Vec.html
core/intrinsics/fn.drop_in_place.html:66: broken link - core/intrinsics/fn.read.html
std/intrinsics/fn.drop_in_place.html:59: broken link - std/intrinsics/fn.read.html
std/intrinsics/fn.drop_in_place.html:66: broken link - std/intrinsics/fn.read.html
thread 'main' panicked at 'found some broken links', src/tools/linkchecker/main.rs:54

@steveklabnik
Copy link
Member

@matthew-piziak ping! still keeping up with this?

@matthew-piziak
Copy link
Contributor Author

@steveklabnik Sorry, I've been traveling for the past three weeks. I should be back in the game around 7 October. Right now this PR is soft-blocking on #36417. Feel free to close; I'll keep the branch alive on my fork.

@steveklabnik
Copy link
Member

Same as in the other thread, no worries, safe travels, let's close for now 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants