summary refs log tree commit diff
path: root/src/doc/nomicon
AgeCommit message (Collapse)AuthorLines
2015-11-17Rollup merge of #29875 - steveklabnik:gh29784, r=ManishearthManish Goregaokar-2/+1
Fixes #29784
2015-11-16Remove nomicon reference to copy_lifetimeSteve Klabnik-2/+1
Fixes #29784
2015-11-16Nomicon: mention tuple structs with repr(c)Steve Klabnik-0/+3
Fixes #29526
2015-11-07Fix typoJake Worth-1/+1
2015-10-30don't use drop_in_place as an intrinsicAlexis Beingessner-9/+6
2015-10-22Add missing "to" in Rustonomicon Atomics.Scott Olson-5/+5
2015-10-20Rollup merge of #29175 - durka:patch-8, r=GankroSteve Klabnik-0/+1
Yay, markdown isn't standardized and rustbook's parser has subtle incompatibilities with Github's! So in the Github preview you don't see that this list fails to separate from the previous paragraph. I think this should fix it, but I didn't check.
2015-10-20Rollup merge of #29162 - tsion:fix-nomicon-typo, r=alexcrichtonSteve Klabnik-1/+1
r? @steveklabnik
2015-10-19fix markdown in nomicon/dropckAlex Burka-0/+1
2015-10-19Correct spelling in docsAndrew Paseltiner-1/+1
2015-10-19Fix minor syntax error in example.Scott Olson-1/+1
2015-10-16Update explanation about offset methodDenisKolodin-2/+2
2015-10-13Correct spelling in docsAndrew Paseltiner-31/+31
2015-10-10doc: fixing typosKyle Robinson Young-3/+3
2015-10-10Auto merge of #28861 - pnkfelix:fsk-nonparam-dropck-issue28498, r=arielb1bors-5/+154
implement RFC 1238: nonparametric dropck. cc #28498 cc @nikomatsakis
2015-10-09review comment: point out that the dropck analysis is now trivial.Felix S. Klock II-4/+6
2015-10-08Document the new more conservative dropck rule and the escape hatch.Felix S. Klock II-5/+152
2015-10-06Replace multiple trailing newlines with a single trailing newlineCarlos Liam-1/+0
Sorry I didn’t get this in the last PR (#28864), I hadn’t thought of it.
2015-10-05Auto merge of #28847 - Ms2ger:typos, r=steveklabnikbors-10/+10
2015-10-05docs: anchors fixesSimon Mazur-2/+2
2015-10-05Fix some typos.Ms2ger-10/+10
2015-09-12Nomicon: Fix LinksPascal Hertleif-8/+8
The style `[name][]` does not work with Pandoc, whereas `[name]` does. I hope hoedown accepts this as well.
2015-09-11std: Internalize almost all of `std::rt`Alex Crichton-14/+26
This commit does some refactoring to make almost all of the `std::rt` private. Specifically, the following items are no longer part of its API: * DEFAULT_ERROR_CODE * backtrace * unwind * args * at_exit * cleanup * heap (this is just alloc::heap) * min_stack * util The module is now tagged as `#[doc(hidden)]` as the only purpose it's serve is an entry point for the `panic!` macro via the `begin_unwind` and `begin_unwind_fmt` reexports.
2015-09-06Rustonomicon: Reword potentially confusing comment in Vec::drain.Jørn Lode-2/+2
2015-09-06Rustonomicon: Fix bug in implementation of Vec::drain()Jørn Lode-11/+16
In the last code snippet on the following page there is a bug in the implementation of Vec::drain(). https://doc.rust-lang.org/nightly/nomicon/vec-drain.html ```rust pub fn drain(&mut self) -> Drain<T> { // Oops, setting it to 0 while we still need the old value! self.len = 0; unsafe { Drain { // len is used to create a &[T] from &self here, // so we end up always creating an empty slice. iter: RawValIter::new(&self), vec: PhantomData, } } } ``` A simple test to verify that Drain is broken can be found here: https://play.rust-lang.org/?gist=30f579565e4bbf4836ce&version=nightly And here's one with a fixed implementation: https://play.rust-lang.org/?gist=2ec0c1a6dcf5defd7a53&version=nightly
2015-09-01Reverse AtomicBool value in nomicon example to agree with its comment.Jake Kerr-4/+4
Makes the code agree with the comment: 'value answers "am I locked?"'.
2015-08-28Remove superfluous line from NomiconAndrew Paseltiner-1/+0
2015-08-22Rollup merge of #27921 - tshepang:missing-words, r=steveklabnikSteve Klabnik-1/+1
2015-08-20nomicon: insert missing wordsTshepang Lekhonkhobe-1/+1
2015-08-20nomicon: use current syntaxTshepang Lekhonkhobe-1/+1
2015-08-06Remove reference to diabetesSteve Klabnik-2/+1
1. this isn't actually true about diabetes 2. people with diabetes will get *real sad* when reading this 3. it isn't actually necessary.
2015-08-06Auto merge of #27556 - taliesinb:tarpl-clarity-2, r=Gankrobors-22/+24
* Some clarifying rephrasing. * Rename B.x back to B.a. * Make null pointer optimization section bit more concrete. r? @Gankro
2015-08-06Revise TARPL's description for allocating 0 bytesJeehoon Kang-2/+2
In Section 3.2, TARPL says that "standard allocators (including jemalloc, the one used by default in Rust) generally consider passing in 0 for the size of an allocation as Undefined Behaviour." However, the C standard and jemalloc manual says allocating zero bytes should succeed: - C11 7.22.3 paragraph 1: "If the size of the space requested is zero, the behavior is implementation-defined: either a null pointer is returned, or the behavior is as if the size were some nonzero value, except that the returned pointer shall not be used to access an object." - [jemalloc manual](http://www.freebsd.org/cgi/man.cgi?query=jemalloc&sektion=3): "The malloc and calloc functions return a pointer to the allocated memory if successful; otherwise a NULL pointer is returned and errno is set to ENOMEM." + Note that the description for `allocm` says "Behavior is undefined if size is 0," but it is an experimental API.
2015-08-06Some rerp-rust improvements.Taliesin Beynon-22/+24
* Some clarifying rephrasing. * Rename B.x back to B.a. * Make null pointer optimization section bit more concrete.
2015-08-05Rollup merge of #27527 - aij:tarpl, r=GankroManish Goregaokar-8/+8
Just some grammar fixes and an assumed missing word. r? @Gankro
2015-08-04Fix some grammar in The Advanced Rust Programming LanguageIvan Jager-8/+8
2015-08-04Fix variance orderingAlexis Beingessner-2/+2
I thought this was actually a huge error and I'd have to rewrite a bunch but it looks like everything else was correct. Closes #27457
2015-08-03rename TARPL to The RustinomiconAlexis Beingessner-0/+5470