Skip to content

Rollup of 5 pull requests #29167

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

Closed
wants to merge 10 commits into from
Closed

Conversation

steveklabnik and others added 10 commits October 14, 2015 08:39
Due to the way iterators work, the std::iter module is chock full of
structs that you, humble Rust programmer, will never actually use.
However, they have URLs, and therefore get linked to, because they are
real structs that do exist.

So, rather than just have a tiny sentence about each one of them,
this patch adds links back to the functions and methods on Iterator
which actually create the structs, where helpful documentation already
exists.
To augment the didactic effect, made placed the thread::sleep_ms call in the last example, so that there will be time for the other locks to happen; without this, I was unable to observe the deadlock in over 1,000 runs when there was no left-handed philosopher.
Due to the way iterators work, the std::iter module is chock full of
structs that you, humble Rust programmer, will never actually use.
However, they have URLs, and therefore get linked to, because they are
real structs that do exist.

So, rather than just have a tiny sentence about each one of them,
this patch adds links back to the functions and methods on Iterator
which actually create the structs, where helpful documentation already
exists.
…chton

Just a few minor spelling/grammar fixes.
…=alexcrichton

I wasn't sure whether `Ordering::Relaxed` meant `Monotonic` or `Unordered`, so I checked the compiler sources and found https://github.com/rust-lang/rust/blob/206af38e74ce7fa4b0e781ece7f1067c018c580e/src/librustc_trans/trans/intrinsic.rs#L846 which appears conclusive.  Adding this answer to the documentation.
I suspect this won't work on Windows, but let's be optimistic and try it before disabling.
To augment the didactic effect, made placed the thread::sleep_ms call in the last example, so that there will be time for the other locks to happen; without this, I was unable to observe the deadlock in over 1,000 runs when there was no left-handed philosopher.
@steveklabnik
Copy link
Member Author

@bors: r+ p=1

@bors
Copy link
Collaborator

bors commented Oct 19, 2015

📌 Commit 81681f0 has been approved by steveklabnik

@rust-highfive
Copy link
Contributor

r? @alexcrichton

(rust_highfive has picked a reviewer for you, use r? to override)

@bors
Copy link
Collaborator

bors commented Oct 19, 2015

⌛ Testing commit 81681f0 with merge 01f962d...

@bors
Copy link
Collaborator

bors commented Oct 19, 2015

💔 Test failed - auto-mac-64-opt

@steveklabnik
Copy link
Member Author

@bors: retry

@bors
Copy link
Collaborator

bors commented Oct 19, 2015

⌛ Testing commit 81681f0 with merge aadb1a4...

@wthrowe
Copy link
Contributor

wthrowe commented Oct 19, 2015

Failure looks legit. (I thought that would probably fail on Windows, but I guess Macs are different enough as well.)

@steveklabnik
Copy link
Member Author

@wthrowe ah, i wasn't sure. I'll r- for now then.

@Centril Centril added the rollup A PR which is a rollup label Oct 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
rollup A PR which is a rollup
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants