bors
2bdf368bde
Auto merge of #41103 - projektir:channel_error_docs, r=GuillaumeGomez
...
Channel error docs
r? @steveklabnik
I'm going to need some help on this one, a few ambiguities.
2017-04-10 09:45:16 +00:00
Geoffry Song
3d60bf45f4
Minor fix to mutex example
...
Presumably `N` was supposed to be used in both places.
2017-04-09 19:42:01 -04:00
projektir
28a232a59a
Adding links around Sender/SyncSender/Receiver errors; Adding more documentation to channel() and sync_channel(); adding more links #29377
2017-04-08 15:33:21 -04:00
Corey Farwell
b0aefe31f4
Rollup merge of #40981 - Technius:master, r=steveklabnik
...
Add links and some examples to std::sync::mpsc docs
Addresses part of #29377
r? @steveklabnik
I took a stab at adding links to the `std::sync::mpsc` docs, and I also wrote a few examples.
Edit: Whoops, typed in `?r` instead of `r?`.
2017-04-05 12:44:27 -04:00
Corey Farwell
1a9f415bfb
Rollup merge of #40977 - projektir:BarrierWaitResult_doc, r=steveklabnik
...
Updating the description for BarrierWaitResult #29377
Referencing `Barrier`, removing reference to `is_leader`.
2017-04-05 12:44:26 -04:00
Corey Farwell
ca37f1ad17
Rollup merge of #40608 - GuillaumeGomez:mutex-doc-inconsistency, r=steveklabnik
...
Fix mutex's docs inconsistency
Fixes #40176 .
r? @steveklabnik
cc @rust-lang/docs
2017-04-05 12:44:24 -04:00
Bryan Tan
ab4f4428e7
Fix styling issues
2017-04-03 16:09:19 -07:00
Guillaume Gomez
e7c2160f8a
Fix mutex's docs inconsistency
2017-04-03 18:57:13 +02:00
Bryan Tan
dab8e8121f
Fix warnings in examples
2017-03-31 23:22:59 -07:00
Bryan Tan
ae8ba78e9d
Fix broken links to std::iter::Iterator::next
2017-03-31 18:51:37 -07:00
Bryan Tan
89c35ae764
Add links and examples to std::sync::mpsc docs ( #29377 )
...
This change adds links to to `Receiver`, `Iter`, `TryIter`, `IntoIter`,
`Sender`, `SyncSender`, `SendError`, `RecvError`, `TryRecvError`,
`RecvTimeoutError`, `TrySendError`, `Sender::send`, `SyncSender::send`,
`SyncSender::try_send`, `Receiver::recv`, `Receiver::recv_timeout`,
`Receiver::iter`, and `Receiver::try_iter`.
Examples added to `Receiver`, `Sender`, `Receiver::iter`.
2017-03-31 17:07:01 -07:00
projektir
44d8b236f4
Updating the description for BarrierWaitResult #29377
2017-03-31 18:58:32 -04:00
Bryan Tan
5a6ebdfcda
Add links to std::sync::mpsc docs #29377
2017-03-30 23:28:15 -07:00
projektir
3207657d12
Adding linking for Once docs #29377
2017-03-29 00:21:55 -04:00
Corey Farwell
d8c8e01038
Rollup merge of #40611 - ScottAbbey:patch-1, r=GuillaumeGomez
...
Fix typo in mutex.rs docs
This seems to match other uses of "be accessed" in the document.
2017-03-19 10:18:20 -04:00
ScottAbbey
ec8ecf4f9d
Fix typo in mutex.rs docs
...
This seems to match other uses of "be accessed" in the document.
2017-03-17 13:27:13 -05:00
Corey Farwell
e7b0f2badf
Remove function invokation parens from documentation links.
...
This was never established as a convention we should follow in the 'More
API Documentation Conventions' RFC:
https://github.com/rust-lang/rfcs/blob/master/text/1574-more-api-documentation-conventions.md
2017-03-13 21:43:18 -04:00
Corey Farwell
5be0d9ff04
Rollup merge of #40033 - GuillaumeGomez:condvar-docs, r=frewsxcv
...
Add missing urls and examples for Condvar docs
r? @frewsxcv
2017-02-28 08:33:01 -05:00
Guillaume Gomez
802a502ebd
Rollup merge of #40052 - GuillaumeGomez:sunc_docs, r=frewsxcv
...
Add missing urls in MutexGuard docs
r? @frewsxcv
2017-02-24 13:23:00 +01:00
Guillaume Gomez
088b727456
Add missing urls in MutexGuard docs
2017-02-23 11:43:30 +01:00
Guillaume Gomez
d3b8f56ae7
Add missing urls and examples for Condvar docs
2017-02-23 11:38:05 +01:00
Guillaume Gomez
58a9dd3f7e
Add missing urls and examples into Barrier structs
2017-02-21 21:12:35 +01:00
Stjepan Glavina
1fbbe79bcb
Fix wording in LocalKey documentation
2017-02-15 23:31:51 +01:00
Corey Farwell
65b24779a9
Rollup merge of #39393 - ollie27:stab_impls, r=alexcrichton
...
Fix a few impl stability attributes
The versions show up in rustdoc.
2017-02-05 09:14:45 -05:00
Son
3c020df3e9
tiny doc wording change
2017-02-04 00:16:56 +11:00
Oliver Middleton
9128f6100c
Fix a few impl stability attributes
...
The versions show up in rustdoc.
2017-01-29 13:31:47 +00:00
Guillaume Gomez
346c84fb0b
Add missing doc examples for Mutex
2017-01-10 20:58:17 +01:00
Andrew Paseltiner
ca9b07bbc9
Replace uses of #[unsafe_destructor_blind_to_params] with #[may_dangle]
...
CC #34761
2016-12-28 17:47:10 -05:00
Alex Crichton
68dd6fd964
Rollup merge of #38006 - frewsxcv:libstd-debug, r=alexcrichton
...
Implement `fmt::Debug` for all structures in libstd.
Part of https://github.com/rust-lang/rust/issues/31869 .
Also turn on the `missing_debug_implementations` lint at the crate
level.
2016-12-20 11:16:17 -08:00
Seo Sanghyeon
4b5cffc04b
Rollup merge of #38421 - apasel422:issue-36934, r=alexcrichton
...
Replace invalid use of `&mut` with `UnsafeCell` in `std::sync::mpsc`
Closes #36934
r? @alexcrichton
2016-12-19 16:59:38 +09:00
Corey Farwell
86fc63e62d
Implement fmt::Debug for all structures in libstd.
...
Part of https://github.com/rust-lang/rust/issues/31869 .
Also turn on the `missing_debug_implementations` lint at the crate
level.
2016-12-18 14:55:14 -08:00
Andrew Paseltiner
26d4308c6a
Replace invalid use of &mut with UnsafeCell in std::sync::mpsc
...
Closes #36934
2016-12-16 19:52:12 -05:00
Aaron Turon
9e8fd24383
Stabilize std::sync::mpsc::Receiver::try_iter
2016-12-15 10:56:55 -08:00
Cobrand
57f998a460
Improve and fix mpsc documentation
...
Closes #37915
This commit enhances documentation with several links and
fixes an error in the `sync_channel` documentation as well:
`send` doesn't panic when the senders are all disconnected
2016-12-07 18:57:01 +01:00
Seo Sanghyeon
44b926a6bb
Rollup merge of #38010 - frewsxcv:lock-creations, r=GuillaumeGomez
...
Document how lock 'guard' structures are created.
2016-11-26 22:02:15 +09:00
Corey Farwell
6075af4ac0
Document how the MutexGuard structure is created.
...
Also, end sentence with a period.
2016-11-25 19:08:26 -05:00
Corey Farwell
6b4de8bf91
Document how the RwLockWriteGuard structure is created.
2016-11-25 18:57:11 -05:00
Corey Farwell
276d91d8cb
Document how the RwLockReadGuard structure is created.
2016-11-25 18:57:09 -05:00
fkjogu
a3e03e42e1
Define bound argument in std::sync::mpsc::sync_channel
...
The `bound` argument in `std::sync::mpsc::sync:channel(bound: usize)` was not defined in the documentation.
2016-11-24 09:49:30 +01:00
Mark-Simulacrum
2af61112d4
Add Error implementation for std::sync::mpsc::RecvTimeoutError.
2016-11-02 08:59:55 -06:00
bors
07b86d0d4d
Auto merge of #37162 - matklad:static-mut-lint, r=jseyfried
...
Lint against lowercase static mut
Closes #37145 .
Lint for non mut statics was added in https://github.com/rust-lang/rust/pull/7523 , and it explicitly did not cover mut statics. I am not sure why.
2016-10-17 04:32:15 -07:00
Aleksey Kladov
72399f2db7
Rename static mut to upper case
2016-10-14 17:21:11 +03:00
Nabeel Omer
b491ddd0f0
Update
2016-10-13 21:07:18 +05:30
Nabeel Omer
cd314ab058
Updated RwLock Docs
2016-10-13 20:37:09 +05:30
Nick Cameron
14c62f91b7
Deprecate Reflect
...
[tracking issue](https://github.com/rust-lang/rust/issues/27749 )
2016-10-12 08:40:22 +13:00
bors
46957f0577
Auto merge of #36893 - apasel422:issue-32114, r=alexcrichton
...
Restore `DISCONNECTED` state in `oneshot::Packet::send`
Closes #32114
I'm not sure if this is the best approach, but the current action of swapping `DISCONNECTED` with `DATA` seems wrong. Additionally, it is strange that the `send` method (and others in the `oneshot` module) takes `&mut self` despite performing atomic operations, as this requires extra discipline to avoid data races and lets us use methods like `AtomicUsize::get_mut` instead of methods that require a memory ordering.
2016-10-05 18:10:34 -07:00
Andrew Paseltiner
fb90e4c7b6
Restore DISCONNECTED state in oneshot::Packet::send
...
Closes #32114
2016-10-05 17:14:06 -04:00
Manish Goregaokar
d25aeb0ef1
Rollup merge of #36902 - ollie27:stab_impls, r=alexcrichton
...
std: Correct stability attributes for some implementations
These are displayed by rustdoc so should be correct.
2016-10-04 15:24:02 +05:30
Brian Anderson
29e0235415
Add a platform-abstraction tidy script
...
This is intended to maintain existing standards of code organization
in hopes that the standard library will continue to be refactored to
isolate platform-specific bits, making porting easier; where "standard
library" roughly means "all the dependencies of the std and test
crates".
This generally means placing restrictions on where `cfg(unix)`,
`cfg(windows)`, `cfg(target_os)` and `cfg(target_env)` may appear,
the basic objective being to isolate platform-specific code to the
platform-specific `std::sys` modules, and to the allocation,
unwinding, and libc crates.
Following are the basic rules, though there are currently
exceptions:
- core may not have platform-specific code
- liballoc_system may have platform-specific code
- liballoc_jemalloc may have platform-specific code
- libpanic_abort may have platform-specific code
- libpanic_unwind may have platform-specific code
- other crates in the std facade may not
- std may have platform-specific code in the following places
- sys/unix/
- sys/windows/
- os/
There are plenty of exceptions today though, noted in the whitelist.
2016-10-02 14:52:15 -07:00
Oliver Middleton
06a7dcd355
std: Correct stability attributes for some implementations
...
These are displayed by rustdoc so should be correct.
2016-10-01 23:58:14 +01:00