about summary refs log tree commit diff
path: root/src/libcore
AgeCommit message (Collapse)AuthorLines
2015-10-24Auto merge of #29252 - steveklabnik:safety, r=alexcrichtonbors-4/+4
Follow https://doc.rust-lang.org/book/documentation.html#special-sections
2015-10-23Make `{Default, From, FromIterator, One, Zero}` well-formedAndrew Paseltiner-5/+7
Using these traits in an object context previously resulted in an RFC 1214 warning.
2015-10-24Auto merge of #29245 - james-darkfox:master, r=alexcrichtonbors-0/+5
2015-10-23Document a bunch of std::iter traitsSteve Klabnik-25/+315
This adds a bunch of documentation for most of the traits in std::iter
2015-10-24Implements Default for mutable slices. Fixes: #29244James McGlashan-0/+5
2015-10-23Unsafety -> Safety in doc headingsSteve Klabnik-4/+4
Follow https://doc.rust-lang.org/book/documentation.html#special-sections
2015-10-21Remove obsolete note about `UnsafeCell`'s fieldsAndrew Paseltiner-5/+1
2015-10-21Auto merge of #29108 - notriddle:master, r=alexcrichtonbors-8/+8
2015-10-21Auto merge of #29192 - phil-opp:unsafe-const-fns, r=alexcrichtonbors-4/+20
similar to #29085
2015-10-20Make Unique::new const functionPhilipp Oppermann-4/+20
2015-10-20Rollup merge of #29176 - huonw:shared-tracking, r=GankroSteve Klabnik-9/+9
2015-10-20Auto merge of #29140 - sorear:dst-document-on-sized, r=alexcrichtonbors-0/+11
This is for discoverability. If someone wants to know what `?Sized` means, then Sized will be the only keyword they can use to search; so even though this is technically a language matter, it makes sense to document it where it will be looked for.
2015-10-20Point core::ptr::Shared to tracking issue #27730.Huon Wilson-9/+9
2015-10-19Rollup merge of #29169 - apasel422:spell, r=steveklabnikSteve Klabnik-1/+1
r? @steveklabnik
2015-10-19Rollup merge of #29132 - sorear:document-ordering-relaxed, r=alexcrichtonSteve Klabnik-1/+2
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.
2015-10-19Rollup merge of #29027 - steveklabnik:iter_docs, r=manishearthSteve Klabnik-20/+137
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.
2015-10-19Correct spelling in docsAndrew Paseltiner-1/+1
2015-10-18Document DST parameters on std::marker::SizedStefan O'Rear-0/+11
This is for discoverability. If someone wants to know what ?Sized means, then Sized will be the only keyword they can use to search; so even though this is technically a language matter, it makes sense to document it where it will be looked for.
2015-10-18docs: change where clause to boundLiigo Zhuang-1/+1
https://github.com/rust-lang/rust/blob/master/src/libcore/iter.rs#L1541
2015-10-17Document that Ordering::Relaxed is MonotonicStefan O'Rear-1/+2
2015-10-17Implement conversion traits for primitive float typesJosh Stone-3/+20
2015-10-17`other` should be called `other`, not `v`.Michael Howell-8/+8
2015-10-16Add `Shared` pointer and have `{Arc, Rc}` use itAndrew Paseltiner-2/+67
This change has two consequences: 1. It makes `Arc<T>` and `Rc<T>` covariant in `T`. 2. It causes the compiler to reject code that was unsound with respect to dropck. See compile-fail/issue-29106.rs for an example of code that no longer compiles. Because of this, this is a [breaking-change]. Fixes #29037. Fixes #29106.
2015-10-16Make NonZero::new const functionVadim Petrochenkov-6/+24
2015-10-15Auto merge of #29050 - rkruppe:dec2flt-lonely-sign, r=alexcrichtonbors-1/+6
Fixes #29042
2015-10-15Auto merge of #29070 - Manishearth:rollup, r=Manishearthbors-19/+19
- Successful merges: #28906, #29022, #29047, #29058, #29059, #29060, #29062, #29066, #29068 - Failed merges:
2015-10-15Rollup merge of #29022 - apasel422:spell, r=steveklabnikManish Goregaokar-19/+19
r? @steveklabnik
2015-10-15Auto merge of #28921 - petrochenkov:intconv, r=alexcrichtonbors-0/+43
Part of https://github.com/rust-lang/rfcs/pull/1218#issuecomment-146615171 r? @aturon
2015-10-15Implement conversion traits for primitive integer typesVadim Petrochenkov-0/+43
2015-10-14Reject "+" and "-" when parsing floats.Robin Kruppe-1/+6
Fixes #29042
2015-10-14Properly link up iterator documentationSteve Klabnik-20/+137
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.
2015-10-13Document the free functions of std::iterSteve Klabnik-1/+109
Flesh the docs out with examples.
2015-10-13Correct spelling in docsAndrew Paseltiner-19/+19
2015-10-12Auto merge of #28914 - steveklabnik:doc_iterator, r=alexcrichtonbors-29/+271
This replaces what was there with a comprehensive overview. Thanks to @hoverbear for suggesting that these docs needed improvement.
2015-10-12Write better module-level docs for std::iterSteve Klabnik-29/+271
This replaces what was there with a comprehensive overview.
2015-10-11Auto merge of #28964 - eminence:docfix, r=sfacklerbors-1/+1
r? @steveklabnik
2015-10-11core: Update the safety docs for core::ptr::writeUlrik Sverdrup-3/+5
Updated to reflect that not dropping a value is safe (but discouraged).
2015-10-10Trivial typo fix: from_utrf8 should be from_utf8Andrew Chin-1/+1
2015-10-09Improve docs for write!/writeln! macrosSteve Klabnik-4/+30
2015-10-08Auto merge of #28900 - cristicbz:typos, r=alexcrichtonbors-11/+11
I found these automatically, but fixed them manually to ensure the semantics are correct. I know things like these are hardly important, since they only marginally improve clarity. But at least for me typos and simple grammatical errors trigger an---unjustified---sense of unprofessionalism, despite the fact that I make them all the time and I understand that they're the sort of thing that is bound to slip through review. Anyway, to find most of these I used: * `ag '.*//.*(\b[A-Za-z]{2,}\b) \1\b'` for repeated words * `ag '\b(the|this|those|these|a|it) (a|the|this|those|these|it)\b'` to find constructs like 'the this' etc. many false positives, but not too hard to scroll through them to actually find the mistakes. * `cat ../../typos.txt | paste -d'|' - - - - - - - - - - - - - - - - - - - - - - | tr '\n' '\0' | xargs -0 -P4 -n1 ag`. Hacky way to find misspellings, but it works ok. I got `typos.txt` from [Wikipedia](https://en.wikipedia.org/wiki/Wikipedia:Lists_of_common_misspellings/For_machines) * `ag '.*//.* a ([ae][a-z]|(o[^n])|(i[a-rt-z]))'` to find places where 'a' was followed by a vowel (requiring 'an' instead). I also used a handful more one off regexes that are too boring to reproduce here.
2015-10-08Auto merge of #28913 - steveklabnik:rollup, r=steveklabnikbors-1/+1
- Successful merges: #28621, #28872, #28893, #28904, #28905, #28908, #28910 - Failed merges: #28906
2015-10-08typos: fix a grabbag of typos all over the placeCristi Cobzarenco-11/+11
2015-10-08Rollup merge of #28910 - frewsxcv:patch-26, r=steveklabnikSteve Klabnik-1/+1
2015-10-08Auto merge of #28826 - arthurprs:leading_plus, r=alexcrichtonbors-40/+41
Closes #27580
2015-10-08Auto merge of #28897 - steveklabnik:rollup, r=steveklabnikbors-36/+95
- Successful merges: #28836, #28856, #28874, #28876, #28878, #28880, #28882, #28885, #28889, #28896 - Failed merges:
2015-10-08Format code-like text in Iterator::cloned doc-commentCorey Farwell-1/+1
2015-10-07Rollup merge of #28896 - mkpankov:core-fmt, r=nrcSteve Klabnik-35/+93
<!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/rust-lang/rust/28896) <!-- Reviewable:end -->
2015-10-08Fix comment gone astrayMichael Pankov-1/+2
2015-10-08rustfmt hash submoduleMichael Pankov-15/+27
2015-10-08rustfmt part of libcore/fmtMichael Pankov-20/+65
Rest is blocked by https://github.com/nrc/rustfmt/issues/413