summary refs log tree commit diff
AgeCommit message (Collapse)AuthorLines
2013-06-08Add a test that causes an ICE currentlyPhilipp Brüschweiler-0/+17
2013-06-08auto merge of #7005 : dotdash/rust/fix_get_str_from, r=bstriebors-10/+8
As the comment said, the subtraction is bogus for multibyte characters. Fortunately, we can just use last_pos instead of pos to get the correct position without any subtraction hackery.
2013-06-07auto merge of #7003 : alco/rust/tutorial-block-expr, r=bstriebors-4/+9
This is something that's only been briefly mentioned in the beginning of the tutorial and all of the closure examples within this subsection include only one expression between { and }.
2013-06-07auto merge of #7000 : Blei/rust/fix-6155, r=catamorphismbors-1/+23
2013-06-07auto merge of #6920 : catamorphism/rust/issue-4765, r=bstriebors-6/+31
r? anybody As per #4765
2013-06-07auto merge of #6695 : catamorphism/rust/moretestcases, r=catamorphismbors-8/+132
2013-06-07testsuite: Add test cases that passTim Chevalier-8/+132
2013-06-07add the Iterator trait to the preludeDaniel Micay-0/+1
2013-06-08Avoid unnecessary allocations in the metadata decoderBjörn Steinbrink-39/+40
2013-06-08Lexer: Fix offset handling in get_str_from()Björn Steinbrink-10/+8
As the comment said, the subtraction is bogus for multibyte characters. Fortunately, we can just use last_pos instead of pos to get the correct position without any subtraction hackery.
2013-06-08Remove some unnecessary closuresBjörn Steinbrink-7/+6
2013-06-08TypeChecker: Avoid unnecessary copiesBjörn Steinbrink-33/+33
2013-06-08Lexer: Avoid unnecessary allocationsBjörn Steinbrink-42/+57
2013-06-08tydecode: Accept a plain borrowed pointer to the dataBjörn Steinbrink-24/+18
2013-06-08Avoid unnecessary heap allocations in the metadata ty decoderBjörn Steinbrink-46/+43
2013-06-08Avoid unnecessary (re-)allocations in the lexerBjörn Steinbrink-7/+8
2013-06-08A reminder that a block is a single expr in closuresAlexei Sholik-4/+9
This is something that's only been briefly mentioned in the beginning of the tutorial and all of the closure examples within this subsection include only one expression between { and }.
2013-06-07auto merge of #7001 : alco/rust/tutorial-for-loop, r=bstriebors-2/+5
The "4.3 Loops" section only describes `while` and `loop`. We then see `for` used in a code sample at the end of the "13. Vectors and strings" section, but it's explained for the first time only in the next section -- "14. Closures". It is worth mentioning it in "4.3 Loops". --- Feel free to reword it and commit yourself if you don't like my wording.
2013-06-07std: Change str::from_bytes to raise a condition on invalid inputTim Chevalier-6/+31
As per #4765
2013-06-08Mention `for` in the section on loopsAlexei Sholik-2/+5
The "4.3 Loops" section only describes `while` and `loop`. We then see `for` used in a code sample at the end of the "13. Vectors and strings" section, but it's explained for the first time only in the next section -- "14. Closures". It is worth mentioning it in "4.3 Loops".
2013-06-07pass correct flags to jemalloc for cross-compilingDaniel Micay-1/+2
2013-06-07rustc::typeck: fix array out of boundsPhilipp Brüschweiler-1/+6
Fixes #6155
2013-06-07Add test for #6155Philipp Brüschweiler-0/+17
2013-06-07auto merge of #6999 : thestinger/rust/each-fn-kill, r=thestingerbors-188/+82
2013-06-07iterator: work around method resolve bug (#5898)Daniel Micay-4/+5
2013-06-07Merge branch 'each-fn-kill' of https://github.com/huonw/rust into each-fn-killDaniel Micay-184/+77
2013-06-08std: remove each[i]_mut functions, in favour of iterators.Huon Wilson-69/+32
2013-06-07auto merge of #6990 : huonw/rust/const-eval, r=bstriebors-1/+1
This fail! caused ICEs, but was trivial to convert to a useful error message.
2013-06-08rustc: Convert a fail! to a useful error message.Huon Wilson-1/+1
2013-06-08std: remove vec::each2 and vec::each2_mut in favour of iteratorsHuon Wilson-97/+24
2013-06-08std: more dummy type parameters on iterators to work around #6967.Huon Wilson-18/+21
2013-06-07auto merge of #6988 : huonw/rust/deriving-changes, r=bstriebors-365/+254
Several minor changes: - The clean-up I mentioned in #6851 (moving functions from deriving/mod.rs to deriving/generic.rs) - Move `expand_generic_deriving` to a method - Reimplement `deriving(Ord)` with no dependence on `Eq`
2013-06-07syntax: correct the modifications to deriving(Ord) so that it works.Huon Wilson-30/+13
2013-06-07syntax: rewrite deriving(Ord) to not require Eq.Huon Wilson-57/+59
lt and gt are implement directly in terms of the corresponding method on their elements, and le and ge are the negations of these.
2013-06-07auto merge of #6946 : Blei/rust/fix-each-path, r=Aatchbors-82/+70
2013-06-07rustc::metadata::decoder: cleanup and slightly speed up each_pathPhilipp Brüschweiler-82/+70
2013-06-07syntax: move expand_generic_deriving to be a method on TraitDefHuon Wilson-55/+37
2013-06-07syntax: move functions from deriving/mod to deriving/generic.Huon Wilson-277/+199
These are now only called in generic and can be private. This includes manually inlining/merging some that are called once.
2013-06-06auto merge of #6985 : Aatch/rust/fixed-vec-6977, r=thestingerbors-4/+18
This fixes #6977. Negative counts don't make sense anyway.
2013-06-06auto merge of #6979 : thestinger/rust/libc, r=brsonbors-36/+5
LLVM provides these functions as intrinsics, and will generate calls to libc when appropriate. They are exposed in the `ptr` module as `copy_nonoverlapping_memory`, `copy_memory` and `set_memory`. @graydon: r?
2013-06-06auto merge of #6895 : cmr/rust/jemalloc, r=brsonbors-13/+44444
2013-06-06auto merge of #6984 : brson/rust/rtcross, r=brsonbors-0/+9
2013-06-07Disallow negative counts in repeat expressionsJames Miller-4/+18
2013-06-06mk: Fix _RUST_STAGEX variables under cross compile. Fix incomingBrian Anderson-0/+9
2013-06-06auto merge of #6982 : Aatch/rust/better-foreign-error, r=pcwaltonbors-2/+2
I encountered this. A straight fail is not useful and most people aren't going to happily spelunk in `parser.rs`
2013-06-07Provide an actual error when expanding macros to foreign itemsJames Miller-2/+2
2013-06-06auto merge of #6981 : jbclements/rust/fold-traverses-macros, r=catamorphismbors-3/+188
Fixes bug #2888 . Includes test cases r? @catamorphism
2013-06-06auto merge of #6980 : Kimundi/rust/iterator-collect3, r=thestingerbors-38/+56
2013-06-06implement fold traversing macrosJohn Clements-3/+38
2013-06-06add test cases for fold traversing macrosJohn Clements-0/+150