summary refs log tree commit diff
path: root/src/doc
AgeCommit message (Collapse)AuthorLines
2015-09-13Update musl build in light of llvm 3.7 releaseAidan Hobson Sayers-17/+14
2015-09-12Auto merge of #28371 - killercup:docs/trpl-markup-fixes, r=steveklabnikbors-36/+39
- Headlines begin at 1st level now like the rest of the book - All Headlines a blank line above and below - Fix links in this chapter's TOC r? @steveklabnik
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-12TRPL: Fix Headlines, Links in "Error Handling"Pascal Hertleif-36/+39
- Headlines begin at 1st level now like the rest of the book - All Headlines a blank line above and below - Fix links in this chapter's TOC
2015-09-11Auto merge of #28306 - alexcrichton:less-rt, r=brsonbors-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-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-11Auto merge of #28348 - petrochenkov:novirt, r=alexcrichtonbors-3/+0
Noticed these yesterday while reading libsyntax
2015-09-11Remove some remains of virtual structs from the parserVadim Petrochenkov-3/+0
2015-09-11Auto merge of #28328 - tshepang:unusual, r=brsonbors-10/+10
2015-09-10Auto merge of #28301 - christopherdumas:intergrate_error_burnstushi, ↵bors-181/+2007
r=steveklabnik This was @steveklabnik's idea. Thanks @BurntSushi for the awesome blog post! r? @steveklabnik
2015-09-10Adapted @BurtSushi's blog post for the error handling chapter, rewrite the ↵christopherdumas-181/+2007
case study.
2015-09-10Auto merge of #28329 - tshepang:comfort, r=steveklabnikbors-2/+2
2015-09-10Auto merge of #28266 - jackwilsonv:patch-4, r=steveklabnikbors-3/+3
r? @steveklabnik
2015-09-10reference: not comfortable seeing a paragraph starting with a lowercase letterTshepang Lekhonkhobe-2/+2
2015-09-10Auto merge of #28323 - tshepang:idiom, r=steveklabnikbors-36/+40
2015-09-10reference: using periods here is unusualTshepang Lekhonkhobe-10/+10
2015-09-10Auto merge of #28232 - brson:tprl, r=steveklabnikbors-7/+14
r? @steveklabnik The phrase 'academic research' rubs me the wrong way. I have some concern about the role of this page and think it could be expanded to more than just academic papers and cleaned up a lot.
2015-09-09Auto merge of #28250 - durka:patch-7, r=steveklabnikbors-0/+52
I took a stab at fixing #28064. Not sure if this all-features-in-one-example approach is the right one. Also I completely made up the terms "star globbing" and "brace expansion globbing" -- they are just called "glob-like syntax" in the reference.
2015-09-09reference: format code snippets in an idiomatic mannerTshepang Lekhonkhobe-36/+40
2015-09-09Auto merge of #28313 - rutsky:patch-4, r=alexcrichtonbors-1/+1
Follow-up fix for PR #28283.
2015-09-09Rollup merge of #28295 - steveklabnik:language_fix, r=alexcrichtonManish Goregaokar-2/+2
Thanks Eric, reported via email
2015-09-09Rollup merge of #28294 - midinastasurazz:patch-3, r=steveklabnikManish Goregaokar-1/+1
The link address is defined below the paragraph so no need to have it inline.
2015-09-09Rollup merge of #28283 - rutsky:patch-3, r=steveklabnikManish Goregaokar-1/+1
r? @steveklabnik
2015-09-09Rollup merge of #28281 - rutsky:patch-2, r=steveklabnikManish Goregaokar-4/+4
r? @steveklabnik
2015-09-09fix capitalization inside sentenseVladimir Rutsky-1/+1
2015-09-08Fix small sentence about referencesSteve Klabnik-2/+2
Thanks Eric, reported via email
2015-09-08Fix link to hygienic macros on Wikipediamidinastasurazz-1/+1
2015-09-07fix punctuation in list (again)Vladimir Rutsky-2/+2
2015-09-07fix capitalization inside sentenseVladimir Rutsky-1/+1
2015-09-07fix punctuation in listVladimir Rutsky-2/+2
r? @steveklabnik
2015-09-06Fix a typoHunan Rostomyan-2/+2
2015-09-06Auto merge of #28269 - petrochenkov:docorder, r=steveklabnikbors-17/+19
This is what I was talking about in https://github.com/rust-lang/rust/pull/26462#issuecomment-113883744 r? @steveklabnik
2015-09-06Auto merge of #28265 - boblehest:master, r=blussbors-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-06Rustonomicon: Reword potentially confusing comment in Vec::drain.Jørn Lode-2/+2
2015-09-06Further tweaks to doc/index.mdVadim Petrochenkov-8/+10
2015-09-06Reorder sections in doc/index.mdVadim Petrochenkov-16/+16
2015-09-05Small formatting/syntax tweaksJack Wilson-3/+3
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-06Auto merge of #28259 - christopherdumas:fix_empty_link, r=Manishearthbors-1/+1
2015-09-05mention dash-to-underscore behaviorAlex Burka-0/+4
2015-09-05Added link for hygenic macro system in macros.mdchristopherdumas-1/+1
2015-09-05Rollup merge of #28225 - jackwilsonv:patch-3, r=steveklabnikManish Goregaokar-8/+8
r? @steveklabnik
2015-09-05document advance `extern crate`/`use` syntaxAlex Burka-0/+48
I took a stab at fixing #28064. Not sure if this all-features-in-one-example approach is the right one. Also I completely made up the terms "star globbing" and "brace expansion globbing" -- they are just called "glob-like syntax" in the reference.
2015-09-04trpl: Rename 'academic research' to 'bibliography'. Add some new links.Brian Anderson-7/+14
2015-09-03Capitalize circle referenceJack Wilson-1/+1
2015-09-03Fixes minor formatting inconsistenciesJack Wilson-8/+8
2015-09-03Rollup merge of #28216 - christopherdumas:fix_28196, r=steveklabnikSteve Klabnik-10/+0
This is a docs change suggested in #28196. r? @steveklabnik
2015-09-03Rollup merge of #28215 - matklad:grammar-extern-block-item, r=steveklabnikSteve Klabnik-1/+1
extern_block should be extern_block_item. extern_block_item is `extern { bunch of fns }`, extern_block is just `bunch of fns` r? @steveklabnik
2015-09-03Rollup merge of #28214 - tshepang:word-not-name, r=steveklabnikSteve Klabnik-1/+1
Also, add missing comma
2015-09-03Rollup merge of #28213 - tshepang:replace-comma, r=steveklabnikSteve Klabnik-1/+1