about summary refs log tree commit diff
path: root/doc
AgeCommit message (Collapse)AuthorLines
2013-08-19doc: add condition tutorialGraydon Hoare-0/+876
2013-08-19Add externfn macro and correctly label fixed_stack_segmentsNiko Matsakis-0/+141
2013-08-16doc: correct spelling in documentation.Huon Wilson-3/+3
2013-08-15update the iterator tutorialDaniel Micay-15/+11
2013-08-15auto merge of #8490 : huonw/rust/fromiterator-extendable, r=catamorphismbors-4/+4
If they are on the trait then it is extremely annoying to use them as generic parameters to a function, e.g. with the iterator param on the trait itself, if one was to pass an Extendable<int> to a function that filled it either from a Range or a Map<VecIterator>, one needs to write something like: fn foo<E: Extendable<int, Range<int>> + Extendable<int, Map<&'self int, int, VecIterator<int>>> (e: &mut E, ...) { ... } since using a generic, i.e. `foo<E: Extendable<int, I>, I: Iterator<int>>` means that `foo` takes 2 type parameters, and the caller has to specify them (which doesn't work anyway, as they'll mismatch with the iterators used in `foo` itself). This patch changes it to: fn foo<E: Extendable<int>>(e: &mut E, ...) { ... }
2013-08-14auto merge of #8480 : cmr/rust/tutorial, r=metajackbors-1/+1
2013-08-14auto merge of #8469 : gifnksm/rust/tutorial-ja, r=graydonbors-1776/+18460
This PR adds an Japanese translated version of `doc/tutorial.md`. Other tutorials have not yet translated.
2013-08-15std: Move the iterator param on FromIterator and Extendable to the method.Huon Wilson-4/+4
If they are on the trait then it is extremely annoying to use them as generic parameters to a function, e.g. with the iterator param on the trait itself, if one was to pass an Extendable<int> to a function that filled it either from a Range or a Map<VecIterator>, one needs to write something like: fn foo<E: Extendable<int, Range<int>> + Extendable<int, Map<&'self int, int, VecIterator<int>>> (e: &mut E, ...) { ... } since using a generic, i.e. `foo<E: Extendable<int, I>, I: Iterator<int>>` means that `foo` takes 2 type parameters, and the caller has to specify them (which doesn't work anyway, as they'll mismatch with the iterators used in `foo` itself). This patch changes it to: fn foo<E: Extendable<int>>(e: &mut E, ...) { ... }
2013-08-12Remove unnecessary returnCorey Richardson-1/+1
2013-08-13tutorial: Add Japanese translationgifnksm-98/+1460
2013-08-12auto merge of #8429 : catamorphism/rust/rustpkg-docs, r=catamorphismbors-0/+5
2013-08-12doc: Generate .po files for Japanse translationsgifnksm-1/+15258
2013-08-12doc: Update .pot filesgifnksm-1775/+1840
2013-08-10Merge branch 'master' of https://github.com/MAnyKey/rust into rollupErick Tryzelaar-1/+1
2013-08-10Merge branch 'vec-exh' of https://github.com/stepancheg/rust into rollupErick Tryzelaar-1/+1
2013-08-09docs: In rustpkg manual, note future plans about versionsTim Chevalier-0/+5
2013-08-09auto merge of #8176 : catamorphism/rust/rustpkg-extern-mod, r=catamorphismbors-8/+22
r? @graydon Also, notably, make rustpkgtest depend on the rustpkg executable (otherwise, tests that shell out to rustpgk might run when rustpkg doesn't exist).
2013-08-09std/rustc/rustpkg/syntax: Support the `extern mod = ...` formTim Chevalier-8/+22
This commit allows you to write: extern mod x = "a/b/c"; which means rustc will search in the RUST_PATH for a package with ID a/b/c, and bind it to the name `x` if it's found. Incidentally, move get_relative_to from back::rpath into std::path
2013-08-09typo in tutorialMaxim Kolganov-1/+1
2013-08-08auto merge of #8385 : cmr/rust/big-rollup, r=alexcrichtonbors-2/+44
This is a fairly large rollup, but I've tested everything locally, and none of it should be platform-specific. r=alexcrichton (bdfdbdd) r=brson (d803c18) r=alexcrichton (a5041d0) r=bstrie (317412a) r=alexcrichton (135c85e) r=thestinger (8805baa) r=pcwalton (0661178) r=cmr (9397fe0) r=cmr (caa4135) r=cmr (6a21d93) r=cmr (4dc3379) r=cmr (0aa5154) r=cmr (18be261) r=thestinger (f10be03)
2013-08-08Fix more priv falloutCorey Richardson-2/+2
2013-08-07Add some documentation about globals in ffi docsAlex Crichton-0/+42
2013-08-07Disable linked failure testsBrian Anderson-8/+8
The implementation currently contains a race that leads to segfaults.
2013-08-07doc: Fix deadlocks in tutorial due to yield bustageBrian Anderson-3/+6
2013-08-07Fix incorrect non-exhaustive matching for fixed length vecsStepan Koltsov-1/+1
Code like this is fixed now: ``` fn foo(p: [u8, ..4]) { match p { [a, b, c, d] => {} }; } ``` Invalid constructors are not reported as errors yet: ``` fn foo(p: [u8, ..4]) { match p { [_, _, _] => {} // this should be error [_, _, _, _, _, .._] => {} // and this _ => {} } } ``` Issue #8311 is partially fixed by this commit. Fixed-length arrays in let statement are not yet allowed: ``` let [a, b, c] = [1, 2, 3]; // still fails ```
2013-08-06remove `extra::iter`Daniel Micay-3/+3
This module provided adaptors for the old internal iterator protocol, but they proved to be quite unreadable and are not generic enough to handle borrowed pointers well. Since Rust no longer defines an internal iteration protocol, I don't think there's going to be any reuse via these adaptors.
2013-08-03remove obsolete `foreach` keywordDaniel Micay-23/+23
this has been replaced by `for`
2013-08-03rm obsolete documentation on `for`Daniel Micay-11/+6
it is documented in the container/iterator tutorial, not the basic tutorial
2013-08-03make `for` parse as `foreach` doesDaniel Micay-8/+7
Closes #6997
2013-08-02librustc: Introduce a new visitor type based on traits and port syntax to it.Patrick Walton-1/+1
This is preparation for removing `@fn`. This does *not* use default methods yet, because I don't know whether they work. If they do, a forthcoming PR will use them. This also changes the precedence of `as`.
2013-08-02replace `range` with an external iteratorDaniel Micay-10/+5
2013-08-01std: Change `Times` trait to use `do` instead of `for`blake2-ppc-3/+3
Change the former repetition:: for 5.times { } to:: do 5.times { } .times() cannot be broken with `break` or `return` anymore; for those cases, use a numerical range loop instead.
2013-08-01migrate many `for` loops to `foreach`Daniel Micay-32/+31
2013-07-29auto merge of #8032 : catamorphism/rust/rustpkg-tags, r=graydonbors-0/+8
r? @graydon Package IDs can now be of the form a/b/c#FOO, where (if a/b/c is a git repository) FOO is any tag in the repository. Non-numeric tags only match against package IDs with the same tag, and aren't compared linearly like numeric versions. While I was at it, refactored the code that calls `git clone`, and segregated build output properly for different packages.
2013-07-29auto merge of #7984 : gifnksm/rust/tutorial-links, r=bstriebors-8/+6
2013-07-27Change concurrency primitives to standard naming conventionsSteven Stewart-Gallus-34/+34
To be more specific: `UPPERCASETYPE` was changed to `UppercaseType` `type_new` was changed to `Type::new` `type_function(value)` was changed to `value.method()`
2013-07-26docs: Talk about tags that aren't versions in the "Package identifiers" sectionTim Chevalier-0/+8
2013-07-26Deny all warnings by default in doc testsAlex Crichton-1/+2
Allow some common ones that are good for examples, however.
2013-07-24improve container/iterator tutorialDaniel Micay-5/+7
2013-07-24document random-access iteratorsDaniel Micay-0/+28
2013-07-24expand on double-ended iterators in the tutorialDaniel Micay-6/+22
2013-07-23tutorial: Remove the sentence about mutable fields.gifnksm-4/+2
2013-07-23tutorial: Fix obsolete namesgifnksm-3/+3
2013-07-23tutorial: Repair broken linksgifnksm-3/+3
2013-07-21Exposed previously hidden 'use' statements in the tutorial's sample code.zslayton-11/+12
2013-07-19updated manualmaikklein-3/+2
2013-07-18auto merge of #7846 : alexcrichton/rust/static-mut-dox, r=pnkfelixbors-0/+35
It's probably a good idea to at least *mention* them somewhere.
2013-07-18auto merge of #7845 : gifnksm/rust/tutorial-remove-dup, r=cmrbors-11/+1
`pandoc` issues warnings. ``` pandoc: Duplicate link reference `[macros]' "source" (line 2151, column 1) pandoc: Duplicate link reference `[tasks]' "source" (line 2150, column 1) pandoc: Duplicate link reference `[wiki-start]' "source" (line 92, column 1) ``` This PR also removes unused link references.
2013-07-17test: Fix tests.Patrick Walton-160/+109
2013-07-17Add documentation about mutable statics to rust.mdAlex Crichton-0/+35