about summary refs log tree commit diff
path: root/src/doc/trpl
AgeCommit message (Collapse)AuthorLines
2015-08-28Fix typo in loops.mdMichael Choate-1/+1
2015-08-28Be explicit about using crates.io's libc crateSteve Klabnik-3/+5
Fixes #28053
2015-08-28Rollup merge of #28022 - steveklabnik:gh27936, r=alexcrichtonManish Goregaokar-1/+14
Fixes #27936
2015-08-27Add Windows-specific comments to testing guideSteve Klabnik-1/+14
Fixes #27936
2015-08-26Fix docs typoNikolay Kondratyev-1/+1
2015-08-25Rollup merge of #27978 - mgrabovsky:doc-fix, r=steveklabnikSteve Klabnik-2/+2
2015-08-24book: Mention that --ignored is a test binary argumentAdam Crume-0/+3
2015-08-24book: Fix spacing in testing sectionAdam Crume-1/+1
2015-08-24Clarify a sentence in the BookMatěj Grabovský-2/+2
2015-08-23book: Talk about ignore attribute in testing guideAdam Crume-0/+57
2015-08-23Auto merge of #27922 - tshepang:dst-definition, r=alexcrichtonbors-0/+6
I am not sure this would work... I didn't test.
2015-08-22Rollup merge of #27934 - MatejLach:spacing_fix, r=steveklabnikSteve Klabnik-2/+2
r @steveklabnik ?
2015-08-22Rollup merge of #27926 - durka:emphasize-no-bin-doctest, r=steveklabnikSteve Klabnik-8/+8
It came up twice in quick succession on IRC that rustdoc doesn't run tests in bin crates, and doesn't give any explanation/warning either as to why. I thought it couldn't hurt to emphasize that in the Book.
2015-08-21fix spacing issue in trpl/documentation docMatej Ľach-2/+2
2015-08-20emphasize that doctests don't run in bin cratesAlex Burka-8/+8
2015-08-20Use handle the same way in similarly structured examplesKornel Lesiński-3/+5
2015-08-20book: add DST to glossaryTshepang Lekhonkhobe-0/+6
2015-08-18Rollup merge of #27882 - steveklabnik:gh27428, r=alexcrichtonSteve Klabnik-4/+54
This is where panic!() is introduced.
2015-08-18Add note about backtraces to TRPLSteve Klabnik-4/+54
This is where panic!() is introduced. Fixes #27428
2015-08-18Auto merge of #27536 - steveklabnik:doc_object_safety, r=alexcrichtonbors-0/+38
Fixes #26938
2015-08-18Add object safety to TRPLSteve Klabnik-0/+38
Fixes #26938
2015-08-13Fix broken link to WilsonSteve Klabnik-1/+1
reported by @chris-code here: https://github.com/rust-lang/rust/issues/24486#issuecomment-130812460
2015-08-11rollup merge of #27682: neurons/np.27681Alex Crichton-2/+2
PR for [Issue #27681] (https://github.com/rust-lang/rust/issues/27681). A simple update to the latest version of rust when typing the command rustc --version.
2015-08-11rollup merge of #27622: eefriedman/https-urlAlex Crichton-11/+11
Also fixes a few outdated links.
2015-08-11Update version number response for new version of rustNiranjan Padmanabhan-2/+2
2015-08-11Rollup merge of #27611 - vincentbernat:fix/doc/chars-iterator, r=steveklabnikManish Goregaokar-1/+1
The previous wording was confusing. While would we need to go through the whole list just to find the first code point? `chars()` being an iterator, we only need to walk from the beginning of the list. Note that I am not a native English speaker and I have still difficulties to spot if a "the" is needed somewhere. Feel free to take this PR as a mere suggestion. r? @steveklabnik
2015-08-11Rollup merge of #27542 - steveklabnik:gh27303, r=alexcrichtonManish Goregaokar-0/+53
Fixes #27303
2015-08-10Auto merge of #27338 - alexcrichton:remove-morestack, r=brsonbors-12/+2
This commit removes all morestack support from the compiler which entails: * Segmented stacks are no longer emitted in codegen. * We no longer build or distribute libmorestack.a * The `stack_exhausted` lang item is no longer required The only current use of the segmented stack support in LLVM is to detect stack overflow. This is no longer really required, however, because we already have guard pages for all threads and registered signal handlers watching for a segfault on those pages (to print out a stack overflow message). Additionally, major platforms (aka Windows) already don't use morestack. This means that Rust is by default less likely to catch stack overflows because if a function takes up more than one page of stack space it won't hit the guard page. This is what the purpose of morestack was (to catch this case), but it's better served with stack probes which have more cross platform support and no runtime support necessary. Until LLVM supports this for all platform it looks like morestack isn't really buying us much. cc #16012 (still need stack probes) Closes #26458 (a drive-by fix to help diagnostics on stack overflow) r? @brson
2015-08-10Remove morestack supportAlex Crichton-12/+2
This commit removes all morestack support from the compiler which entails: * Segmented stacks are no longer emitted in codegen. * We no longer build or distribute libmorestack.a * The `stack_exhausted` lang item is no longer required The only current use of the segmented stack support in LLVM is to detect stack overflow. This is no longer really required, however, because we already have guard pages for all threads and registered signal handlers watching for a segfault on those pages (to print out a stack overflow message). Additionally, major platforms (aka Windows) already don't use morestack. This means that Rust is by default less likely to catch stack overflows because if a function takes up more than one page of stack space it won't hit the guard page. This is what the purpose of morestack was (to catch this case), but it's better served with stack probes which have more cross platform support and no runtime support necessary. Until LLVM supports this for all platform it looks like morestack isn't really buying us much. cc #16012 (still need stack probes) Closes #26458 (a drive-by fix to help diagnostics on stack overflow)
2015-08-09Use https URLs to refer to rust-lang.org where appropriate.Eli Friedman-11/+11
Also fixes a few outdated links.
2015-08-09TRPL: minor correction on how `chars().nth()` workVincent Bernat-1/+1
The previous wording was confusing. While would we need to go through the whole list just to find the first code point? `chars()` being an iterator, we only need to walk from the beginning of the list.
2015-08-07Added arrows to references in tablesMike Marcacci-133/+133
Keeping integer values and integer references in the "value" columns made the examples quite difficult for me to follow. I've added unicode arrows to make references more obvious, without using a character with actual meaning in the rust language (like `&` or previously `~`).
2015-08-07Auto merge of #27558 - mlalic:patch-1, r=brsonbors-1/+1
r? @steveklabnik
2015-08-07Auto merge of #27552 - tshepang:misc, r=brsonbors-7/+6
2015-08-06fixed the few nits!Ruby-3/+3
2015-08-06Explained asterisk on & and &mut referenceRuby-0/+4
2015-08-06Add opaque structs to TRPL:FFISteve Klabnik-0/+53
Fixes #27303
2015-08-06TRPL/lifetimes.md: Fix typo lifteimes -> lifetimesMarko Lalic-1/+1
2015-08-06book: some improvements to Advanced LinkingTshepang Lekhonkhobe-7/+6
2015-08-05Rollup merge of #27539 - steveklabnik:gh26746, r=brsonSteve Klabnik-0/+60
1. mention them in the function chapter 2. mention their coercion to closures in the closures chapter Fixes #26746
2015-08-05Rollup merge of #27538 - steveklabnik:gh26917, r=GankroSteve Klabnik-2/+12
We haven't discussed this syntax yet, so provide a basic explanation and link up to later chapters. Fixes #26917
2015-08-05Rollup merge of #27535 - steveklabnik:for_jhun, r=alexcrichtonSteve Klabnik-2/+2
'work' can refer to the game itself, ie, 'this compiles but the game isn't finished,' so 'compile' is a more clear way to describe the problem. Thanks jhun on irc
2015-08-05Rollup merge of #27285 - lastorset:trait-operator-impl, r=steveklabnikSteve Klabnik-14/+146
I also included some smaller trait-related changes. Fixes #26991. r? @shepmaster r? @steveklabnik
2015-08-05Add more infor about function pointers to TRPLSteve Klabnik-0/+60
1. mention them in the function chapter 2. mention their coercion to closures in the closures chapter Fixes #26746
2015-08-05Expand further on <> syntax in TRPL.Steve Klabnik-2/+12
We haven't discussed this syntax yet, so provide a basic explanation and link up to later chapters. Fixes #26917
2015-08-05work -> compile in Guessing GameSteve Klabnik-2/+2
'work' can refer to the game itself, ie, 'this compiles but the game isn't finished,' so 'compile' is a more clear way to describe the problem. Thanks jhun on irc
2015-08-05Auto merge of #27530 - Manishearth:rollup, r=Manishearthbors-122/+122
- Successful merges: #27519, #27521, #27525, #27527, #27528 - Failed merges:
2015-08-05Rollup merge of #27519 - JanLikar:rearrange-patterns, r=steveklabnikManish Goregaokar-122/+122
- Move "Destructuring" after "Multiple patterns", because some of later sections include examples which make use of destructuring. - Move "Ignoring bindings" after "Destructoring", because the former features Result<T,E> destructuring. Some of examples in later sections use "_" and "..", so "Ignoring bindings" must be positioned before them. - Fix #27347 by moving "Ref and mut ref" before "Ranges" and "Bindings", because "Bindings" section includes a somewhat difficult example, which also makes use of "ref" and "mut ref" operators.
2015-08-04Tweaked concurrency.mdChris Nixon-33/+61
2015-08-04Rearrange sections in "Patterns"Jan Likar-122/+122
- Move "Destructuring" after "Multiple patterns", because some of later sections include examples which make use of destructuring. - Move "Ignoring bindings" after "Destructoring", because the former features Result<T,E> destructuring. Some of examples in later sections use "_" and "..", so "Ignoring bindings" must be positioned before them. - Fix #27347 by moving "Ref and mut ref" before "Ranges" and "Bindings", because "Bindings" section includes a somewhat difficult example, which also makes use of "ref" and "mut ref" operators.