about summary refs log tree commit diff
path: root/src/doc/book
AgeCommit message (Collapse)AuthorLines
2016-09-01Auto merge of #34494 - CensoredUsername:allow_sysV64_abi, r=nagisabors-0/+1
Allow specification of the system V AMD64 ABI constraint. This can be specified using `extern "sysV64" fn` on all platforms. This ABI is used as the C ABI on unix platforms, but can only be specified there using extern "C". It was impossible to specify on other platforms. Meanwhile the win64 ABI, which was the extern "C" ABI on the windows platform could be specified on other platforms using extern "win64". This pull request adds the the "sysV64" ABI constraint which exposes this calling convention on platforms where it is not the C ABI.
2016-08-30Change ABI string from sysV64 to sysv64CensoredUsername-1/+1
2016-08-30Allow specification of the system V AMD64 ABI constraint.CensoredUsername-0/+1
This can be specified using `extern sysV64 fn` on all platforms
2016-08-24Updated code sample in chapter on syntax extensions.Vincent Esche-3/+3
The affected API apparently had changed with commit d59accfb065843d12db9180a4f504664e3d23ef1.
2016-08-23Rollup merge of #35913 - frewsxcv:panic, r=steveklabnikGuillaume Gomez-2/+2
Mark panicking tests as `should_panic` instead of `no_run`. None
2016-08-22Mark panicking tests as `should_panic` instead of `no_run`.Corey Farwell-2/+2
2016-08-22Correct failing book testPanashe M. Fundira-0/+6
2016-08-21Add reference to `Self` in traits chapter (book)Panashe M. Fundira-0/+22
2016-08-20Add docs for "!" empty Never type (rfc 1216)Stefan Schindler-1/+4
2016-08-20Rollup merge of #35794 - cantino:fix-typo, r=apasel422Jonathan Turner-1/+1
Fix minor typo Minor typo in the book.
2016-08-20Rollup merge of #35781 - ErikUggeldahl:spellingfix, r=apasel422Jonathan Turner-2/+2
Very minor spelling fix in the book Changed datastructure to data structure. r? @steveklabnik
2016-08-18Fix minor typoAndrew Cantino-1/+1
2016-08-18Fix tiny spelling mistake in bookErik Uggeldahl-2/+2
Changed datastructure to data structure
2016-08-18Fix linksNick Cameron-4/+4
2016-08-17Rollup merge of #35681 - Rufflewind:patch-1, r=apasel422Jonathan Turner-3/+3
Fix spacing in code of closures.md The spacing seems inconsistent with existing style conventions.
2016-08-17Rollup merge of #35663 - CryZe:no-stdlib, r=ManishearthJonathan Turner-12/+29
Improve `No stdlib` and related Documentation This renames all lang item function names to the ones used in `libstd` and `libpanic_unwind`. It also explains the `eh_unwind_resume` lang item in the `libcore` documentation, where it was missing. A third function is also needed on certain compilation targets, so this was also added to the `No stdlib` documentation.
2016-08-17Rollup merge of #35595 - urschrei:associated_types_docfix, r=steveklabnikJonathan Turner-1/+1
Clarify type declaration language in Associated Types docs A small fix for the Associated Types docs r? @steveklabnik
2016-08-15Fix spacing in code of closures.mdPhil Ruffwind-3/+3
The spacing seems inconsistent with existing style conventions.
2016-08-14Rollup merge of #35647 - ahmedcharles:spelling, r=alexcrichtonEduard-Mihai Burtescu-1/+1
Ensure that attributes are spelled properly.
2016-08-14Improve `No stdlib` and related DocumentationChristopher Serr-12/+29
2016-08-13Ensure that attributes are spelled properly.Ahmed Charles-1/+1
2016-08-12book: fix the hidden find() functions in error-handling.mdChristophe Vu-Brugier-3/+3
The hidden find() functions always returns None. Consequently, one of the examples using find() prints "No file extension found" instead of "File extension: rs" which is the expected output. This patch fixes the issue by implementing find() with std::str::find(). Signed-off-by: Christophe Vu-Brugier <cvubrugier@fastmail.fm>
2016-08-11More clarificationStephan Hügel-1/+1
2016-08-11Clarify type declaration languageStephan Hügel-1/+1
2016-08-08Rollup merge of #35466 - xitep:master, r=steveklabnikJonathan Turner-0/+1
book: fix formatting of module layout example
2016-08-08book: update example patterns to be more clearDoug Goldstein-6/+6
When using Point { x: 0, y: 0 } and showing pattern matching decomposing x and y individually its hard to understand. By using a different value for x and a different value for y it is more clear.
2016-08-07Fix formatting of module layout exampleNovotnik, Petr-0/+1
2016-08-05Rollup merge of #35189 - mLuby:patch-1, r=steveklabnikGuillaume Gomez-0/+2
Update the-stack-and-the-heap.md Was surprised to learn that heaps were used in this way, then realized upon reading [the linked paper](http://www.cs.cmu.edu/afs/cs/academic/class/15213-f98/doc/dsa.pdf) that it's a totally different type of heap—an important distinction.
2016-08-05Rollup merge of #35137 - jongiddy:explicit-wildcard, r=steveklabnikGuillaume Gomez-1/+1
Provide more explicit example of wildcard version in guessing game doc. Beginners may try to adapt the tutorial to develop their own code. When using different dependencies, they may use the wildcard for versioning. Since they are new to the language, they will not know that the wildcard asterisk is a string, not a token. Make the correct format more explicit, to remove one potential source of frustration.
2016-08-02Update the-stack-and-the-heap.mdmLuby-0/+2
Was surprised to learn that heaps were used in this way, then realized upon reading [the linked paper](http://www.cs.cmu.edu/afs/cs/academic/class/15213-f98/doc/dsa.pdf) that it's a totally different type of heap—an important distinction.
2016-08-02Ignore the lang-items example in the book.Eduard Burtescu-1/+1
2016-07-31Provide more explicit example of wildcard version in guessing game doc.Jonathan Giddy-1/+1
Beginners may try to adapt the tutorial to develop their own code. When using different dependencies, they may use the wildcard for versioning. Since they are new to the language, they will not know that the wildcard asterisk is a string, not a token. Make the correct format more explicit, to remove one potential source of frustration.
2016-07-30Auto merge of #34904 - petrochenkov:rustcall, r=nikomatsakisbors-0/+1
Properly feature gate all unstable ABIs Fixes https://github.com/rust-lang/rust/issues/34900 [breaking-change] r? @pnkfelix --- Function-visiting machinery for AST/HIR is surprisingly error-prone, it's *very* easy to miss some cases or visit something twice while writing a visitor. This is the true problem behind https://github.com/rust-lang/rust/issues/34900. I'll try to restructure these visitors a bit and send one more PR later.
2016-07-29Rollup merge of #35103 - brettcannon:patch-1, r=ManishearthGuillaume Gomez-3/+3
Try to clear up some awkward wording
2016-07-28Try to clear up some awkward wordingBrett Cannon-3/+3
2016-07-27remove claim about searching through nested fields for the nullable type, ↵Alex Burka-7/+9
even though that is how it works
2016-07-27fix typoAlex Burka-1/+1
2016-07-27revert libc changesAlex Burka-9/+13
2016-07-27hack to make example compileAlex Burka-1/+5
2016-07-27change confusing wording about discriminantAlex Burka-3/+3
2016-07-27extern fns require named parametersAlex Burka-1/+1
Not sure the example is going to stay, but I can try to pass Travis for the bragging rights.
2016-07-27foreign function interface interfaceAlex Burka-1/+1
2016-07-27not just a single fieldAlex Burka-1/+1
2016-07-27recursionAlex Burka-4/+4
2016-07-27expand nullable pointer exampleAlex Burka-4/+24
2016-07-27generics-agnostic descriptionAlex Burka-8/+6
2016-07-27book/ffi: nullable pointer, libc cleanupsAlex Burka-21/+46
Expand the "nullable pointer optimization" section with a code example. Change examples to use std::os::raw instead of libc, when applicable.
2016-07-26Rollup merge of #35043 - rahiel:patch-1, r=nikomatsakisSteve Klabnik-2/+0
doc/book/trait-objects: remove empty lines at start of examples I think it looks better without them.
2016-07-26doc/book/trait-objects: remove empty lines at start of examplesRahiel Kasim-2/+0
2016-07-23Update underscore usage (#34903)abhi-1/+2