about summary refs log tree commit diff
path: root/src/doc
AgeCommit message (Collapse)AuthorLines
2014-02-21Changed NonCamelCaseTypes lint to warn by defaultmr.Shu-39/+39
Added allow(non_camel_case_types) to librustc where necesary Tried to fix problems with non_camel_case_types outside rustc fixed failing tests Docs updated Moved #[allow(non_camel_case_types)] a level higher. markdown.rs reverted Fixed timer that was failing tests Fixed another timer
2014-02-20auto merge of #12161 : aepsil0n/rust/docs/for-loop, r=alexcrichtonbors-0/+26
I just started learning Rust and the absence of an explanation of the for-loop in the beginning really bugged me about the tutorial. Hence I simply added these lines, where I would have expected them. I know that there is something later on in the section on traits. However, this simple iteration scheme feels like something that you should be aware of right away.
2014-02-20move extra::test to libtestLiigo Zhuang-9/+10
2014-02-19auto merge of #12367 : darnuria/rust/tutorial_removing_do_syntax, r=cmrbors-39/+18
The 'do' keyword was deprecated in 0.10 #11868 , and is keep as reserved keyword #12157 . So the tutorial part about it doesn't make sense. The spawning explanation was move into '15.2 Closure compatibility'.
2014-02-18Removing '15.3 Do syntax' in tutorial.Axel Viala-39/+18
The 'do' keyword was deprecated in 0.10 #11868 , and is keep as reserved keyword #12157 . So the tutorial part about it doesn't make sense. The spawning explanation was move into '15.2 Closure compatibility'. Fixing misspelling. Thanks for precisions. Moved from 15.2 to 15.1. Fixed typo, and apply pnkfelix advices.
2014-02-18auto merge of #12342 : ehsanul/rust/remove-shared-chan-tasks-guide, ↵bors-11/+7
r=alexcrichton The code examples are up to date, but the surrounding explanations are not.
2014-02-17Added more scripts to tidy checkDerek Guenther-2/+54
2014-02-17Update tasks guide: SharedChan as been removedEhsanul Hoque-11/+7
The code examples are up to date, but the surrounding explanations are not.
2014-02-16doc: Reorganize the library indexBrian Anderson-11/+8
Only single out std. Put everything else in a consistent list.
2014-02-15auto merge of #12298 : alexcrichton/rust/rustdoc-testing, r=sfacklerbors-20/+12
It's too easy to forget the `rust` tag to test something. Closes #11698
2014-02-15auto merge of #12272 : alexcrichton/rust/snapshot, r=kballardbors-162/+162
This notably contains the `extern mod` => `extern crate` change. Closes #9880
2014-02-15auto merge of #12282 : cmr/rust/cleanup-ptr, r=huonwbors-5/+5
2014-02-15std: clean up ptr a bitCorey Richardson-5/+5
2014-02-14Remove broken link to old conditions tutorialSteven Fackler-2/+0
2014-02-14Update rustdoc testing to test all code blocksAlex Crichton-20/+12
It's too easy to forget the `rust` tag to have a code example tested, and it's far more common to have testable code than untestable code. This alters rustdoc to have only two directives, `ignore` and `should_fail`. The `ignore` directive ignores the code block entirely, and the `should_fail` directive has been fixed to only fail the test if the code execution fails, not also compilation.
2014-02-14extern mod => extern crateAlex Crichton-162/+162
This was previously implemented, and it just needed a snapshot to go through
2014-02-14tutorial: stronger wording in build instructionsCorey Richardson-2/+2
2014-02-13remove duplicate function from std::ptr (is_null, is_not_null, offset, ↵JeremyLetang-1/+1
mut_offset)
2014-02-13Add documentation for conditional-compilationTobias Bucher-10/+74
This documents in-source conditions using #[cfg(...)] and configurations pre-defined by the compiler. Fix #7962.
2014-02-13auto merge of #12210 : zr40/rust/patch-1, r=cmrbors-3/+3
According to kimundi on IRC, the current term for `()` is 'unit'. This commit updates tutorial.md to change 'nil' to 'unit' where `()` is described.
2014-02-12doc: rename 'nil' to 'unit' when describing `()`Matthijs van der Vleuten-3/+3
2014-02-12auto merge of #12194 : WebeWizard/rust/master, r=cmrbors-2/+32
2014-02-11auto merge of #12184 : JeremyLetang/rust/rustpkg-link, r=alexcrichtonbors-2/+0
2014-02-11Rewrite channels yet again for upgradeabilityAlex Crichton-1/+1
This, the Nth rewrite of channels, is not a rewrite of the core logic behind channels, but rather their API usage. In the past, we had the distinction between oneshot, stream, and shared channels, but the most recent rewrite dropped oneshots in favor of streams and shared channels. This distinction of stream vs shared has shown that it's not quite what we'd like either, and this moves the `std::comm` module in the direction of "one channel to rule them all". There now remains only one Chan and one Port. This new channel is actually a hybrid oneshot/stream/shared channel under the hood in order to optimize for the use cases in question. Additionally, this also reduces the cognitive burden of having to choose between a Chan or a SharedChan in an API. My simple benchmarks show no reduction in efficiency over the existing channels today, and a 3x improvement in the oneshot case. I sadly don't have a pre-last-rewrite compiler to test out the old old oneshots, but I would imagine that the performance is comparable, but slightly slower (due to atomic reference counting). This commit also brings the bonus bugfix to channels that the pending queue of messages are all dropped when a Port disappears rather then when both the Port and the Chan disappear.
2014-02-11Added examples for converting vectors of u8 into strings. Also fixed some ↵WebeWizard-2/+32
styling
2014-02-11container -- update example to contain scope of closure borrowNiko Matsakis-13/+19
2014-02-11auto merge of #12171 : chromatic/rust/fix_crate_tutorial_typos, r=brsonbors-39/+34
This commit attempts to clarify a section of the tutorial. It also fixes some typos.
2014-02-11remove dead link to rustpkg documentationJeremyLetang-2/+0
2014-02-11 Explain container iteration in the loop tutorialEduard Bopp-2/+16
As suggested by @pnkfelix in #12161, this extends the examples by a for-loop that iterates over a string as an example for container iteration.
2014-02-11Factoring bigint, rational, and complex out of libextra into libnum.Felix S. Klock II-7/+8
Removed use of globs present in earlier versions of modules. Fix tutorial.md to reflect `extra::rational` ==> `num::rational`.
2014-02-10Revised Crate section of tutorial for clarity.chromatic-39/+34
2014-02-10Document for-loop in tutorial section on loopsEduard Bopp-0/+12
2014-02-10Added link to fourcc docsDerek Guenther-0/+1
2014-02-10auto merge of #12084 : alexcrichton/rust/codegen-opts, r=cmrbors-1/+1
Move them all behind a new -C switch. This migrates some -Z flags and some top-level flags behind this -C codegen option. The -C flag takes values of the form "-C name=value" where the "=value" is optional for some flags. Flags affected: * --llvm-args => -C llvm-args * --passes => -C passes * --ar => -C ar * --linker => -C linker * --link-args => -C link-args * --target-cpu => -C target-cpu * --target-feature => -C target-fature * --android-cross-path => -C android-cross-path * --save-temps => -C save-temps * --no-rpath => -C no-rpath * -Z no-prepopulate => -C no-prepopulate-passes * -Z no-vectorize-loops => -C no-vectorize-loops * -Z no-vectorize-slp => -C no-vectorize-slp * -Z soft-float => -C soft-float * -Z gen-crate-map => -C gen-crate-map * -Z prefer-dynamic => -C prefer-dynamic * -Z no-integrated-as => -C no-integrated-as As a bonus, this also promotes the -Z extra-debug-info flag to a first class -g or --debuginfo flag. * -Z debug-info => removed * -Z extra-debug-info => -g or --debuginfo Closes #9770 Closes #12000
2014-02-10Consolidate codegen-related compiler flagsAlex Crichton-1/+1
Move them all behind a new -C switch. This migrates some -Z flags and some top-level flags behind this -C codegen option. The -C flag takes values of the form "-C name=value" where the "=value" is optional for some flags. Flags affected: * --llvm-args => -C llvm-args * --passes => -C passes * --ar => -C ar * --linker => -C linker * --link-args => -C link-args * --target-cpu => -C target-cpu * --target-feature => -C target-fature * --android-cross-path => -C android-cross-path * --save-temps => -C save-temps * --no-rpath => -C no-rpath * -Z no-prepopulate => -C no-prepopulate-passes * -Z no-vectorize-loops => -C no-vectorize-loops * -Z no-vectorize-slp => -C no-vectorize-slp * -Z soft-float => -C soft-float * -Z gen-crate-map => -C gen-crate-map * -Z prefer-dynamic => -C prefer-dynamic * -Z no-integrated-as => -C no-integrated-as As a bonus, this also promotes the -Z extra-debug-info flag to a first class -g or --debuginfo flag. * -Z debug-info => removed * -Z extra-debug-info => -g or --debuginfo Closes #9770 Closes #12000
2014-02-09Rearranged enum section of tutorial for clarity.chromatic-43/+40
This version starts with the simple case and builds on it.
2014-02-09auto merge of #12124 : brson/rust/intrinsics, r=thestingerbors-3/+3
As mentioned https://github.com/mozilla/rust/pull/11956#issuecomment-34561655 I've taken some of the most commonly-used intrinsics and put them in a more logical place, reduced the amount of code looking in `unstable::intrinsics`. r? @thestinger
2014-02-09auto merge of #12119 : huonw/rust/guide-testing, r=brsonbors-56/+130
be more precise about what's being benchmarked. Also, reorganise the layout a bit, to put examples directly in their sections.
2014-02-09std: Add move_val_init to mem. Replace direct intrinsic usageBrian Anderson-2/+1
2014-02-09std: Add init and uninit to mem. Replace direct intrinsic usageBrian Anderson-1/+2
2014-02-09Expand the testing guide to cover optimizations, benchmarks and how toHuon Wilson-56/+130
be more precise about what's being benchmarked. Also, reorganise the layout a bit, to put examples directly in their sections.
2014-02-08auto merge of #12114 : brson/rust/faqs, r=cmrbors-182/+25
These are ancient. I removed a bunch of questions that are less relevant - or completely unrelevant, updated other entries, and removed things that are already better expressed elsewhere.
2014-02-08auto merge of #12109 : omasanori/rust/small-fixes, r=sfacklerbors-1/+0
Most of them are to reduce warnings in testing builds.
2014-02-09rustpkg has gone.OGINO Masanori-1/+0
Signed-off-by: OGINO Masanori <masanori.ogino@gmail.com>
2014-02-08doc: Modernize FAQs just slightlyBrian Anderson-182/+25
2014-02-07auto merge of #12066 : huonw/rust/show2, r=alexcrichtonbors-3/+4
- Convert the formatting traits to `&self` rather than `_: &Self` - Rejig `syntax::ext::{format,deriving}` a little in preparation - Implement `#[deriving(Show)]`
2014-02-08Update docs and tests for #[deriving(Show)].Huon Wilson-3/+4
2014-02-07auto merge of #12094 : adridu59/rust/licensing, r=brsonbors-1/+23
Closes #12069. cc @brson
2014-02-07auto merge of #12073 : alexcrichton/rust/doc-examples, r=cmrbors-3/+1
"How do I start in libX" is a common question that I've seen, so I figured putting the examples in as many places as possible is probably a good idea.
2014-02-07doc: add license information for gen. filesAdrien Tétar-1/+23