-
Notifications
You must be signed in to change notification settings - Fork 13.3k
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
Rollup of 5 pull requests #29167
Conversation
steveklabnik
commented
Oct 19, 2015
- Successful merges: Properly link up iterator documentation #29027, Fix minor issues with std::io docs #29125, Document that Ordering::Relaxed is Monotonic #29132, Add a regression test for #29122 (fixed in #29134) #29151, Made the example capable of consistent deadlocking #29165
- Failed merges:
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.
@bors: r+ p=1 |
📌 Commit 81681f0 has been approved by |
(rust_highfive has picked a reviewer for you, use r? to override) |
⌛ Testing commit 81681f0 with merge 01f962d... |
💔 Test failed - auto-mac-64-opt |
@bors: retry |
⌛ Testing commit 81681f0 with merge aadb1a4... |
Failure looks legit. (I thought that would probably fail on Windows, but I guess Macs are different enough as well.) |
@wthrowe ah, i wasn't sure. I'll r- for now then. |