about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2013-05-15auto merge of #6493 : brson/rust/tls, r=thestingerbors-4/+2
2013-05-15auto merge of #6490 : brson/rust/rusti, r=brsonbors-1/+1
2013-05-15auto merge of #6487 : recrack/rust/vec_len, r=thestingerbors-134/+128
Rename vec::len(var) to var.len() ``` libcore, libfuzzer, librustc, librustdoc, libstd, libsyntax test/auxiliary test/bench test/run-pass ```
2013-05-15auto merge of #6485 : cmr/rust/local_rename_import_error, r=catamorphismbors-13/+36
2013-05-14auto merge of #6482 : catamorphism/rust/unsafe-fn-autoderef, r=catamorphismbors-4/+6
2013-05-14auto merge of #6224 : erickt/rust/rustc-cleanup, r=ericktbors-588/+605
Just a couple minor cleanups and renames of librustc
2013-05-14auto merge of #6478 : dotdash/rust/inlining, r=catamorphismbors-0/+5
Not inlining these affects the hash table performance quite badly.
2013-05-14core: Fix leak in TLS. #6231Brian Anderson-4/+2
2013-05-14rustc: rename ty::method to ty::Method and add ctorErick Tryzelaar-76/+108
2013-05-14rustc: rename ast::self_ty and related fields to explicit_selfErick Tryzelaar-184/+184
2013-05-14rustc: rename a method receiver type to rcvr_tyErick Tryzelaar-18/+20
2013-05-14syntax: add IterBytes impls for some ast typesErick Tryzelaar-0/+101
2013-05-14rustc: rename some ty_self variables to self_argErick Tryzelaar-9/+9
2013-05-14rustc: Remove ty::argErick Tryzelaar-302/+181
2013-05-14rustc: minor cleanupErick Tryzelaar-8/+11
2013-05-14rusti: Ignore tests. Failing on i686. #6489Brian Anderson-1/+1
2013-05-15Rename vec::len(var) to var.len()Youngmin Yoo-134/+128
2013-05-14auto merge of #6333 : bjz/rust/cond-macro, r=thestingerbors-29/+105
Addressing issue #6037, this Scheme-style conditional helps to improve code clarity in instances where the `if`, `else if`, and `else` keywords obscure predicates undesirably. Here is an example: ~~~rust let clamped = if x > mx { mx } else if x < mn { mn } else { x }; ~~~ Using `cond!`, the above could be written as: ~~~rust let clamped = cond!( (x > mx) { mx } (x < mn) { mn } _ { x } ); ~~~ The optional default case is denoted by `_`. I have altered `std::fun_treemap` to demonstrate it in use. I am definitely interested in using it for some of the numeric functions, but I will have to wait for it to reach `stage0` first.
2013-05-15Use parentheses for cond! macro instead of preceding pipesBrendan Zabarauskas-14/+14
This is temporary. Once the macro parser has improved or been re-written these can be removed.
2013-05-14Fix resolution testsCorey Richardson-2/+6
2013-05-14Fix ICECorey Richardson-5/+11
2013-05-14Get span from import_directiveCorey Richardson-1/+1
2013-05-14Add span to some import resolution errorsCorey Richardson-11/+13
2013-05-14Add test for resolution errorsCorey Richardson-1/+7
2013-05-14Better error reporting with renaming importsCorey Richardson-1/+6
2013-05-14auto merge of #6471 : gifnksm/rust/reform-rational, r=brsonbors-84/+126
`std::ratio` module contains `BigRational` type, but the type is not usable by following reasons. * `Ratio::new` requires `T: Copy + Num + Ord`, but `BigInt` is not implicitly copyable, because it contains unique vector. * `BigInt` is not implements `Num` So, I rewrite `Ratio` as follows. * `Ratio` requires `T: Clone + Integer + Ord`. * `Copy` -> `Clone`: to be able to use `BigRational` * `Num` -> `Integer`: It is incorrect that a rational number constructed by two non-integer numbers. * `BigInt` implements `Num` and `Orderable` which are required by `Integer` bound
2013-05-14auto merge of #6468 : gifnksm/rust/rposition-immutable, r=brsonbors-26/+26
`position` and `rposition` belonged to `ImmutableCopyableVector`, but they don't need the value is copyable.
2013-05-15Add Scheme-style `cond!` macro to syntax::ext::expandBrendan Zabarauskas-29/+105
Addresses issue #6037
2013-05-14testsuite: Update and un-xfail unsafe-fn-autoderefTim Chevalier-4/+6
2013-05-14auto merge of #6479 : brson/rust/flatpipes, r=brsonbors-0/+2
2013-05-14Ignore two failing flatpipes testsBrian Anderson-0/+2
2013-05-14Add inlining for iter_bytes for types used as hashmap keysBjörn Steinbrink-0/+5
Not inlining these affects the hash table performance quite badly.
2013-05-14Fix rustpkg tests now that they're in a different locationAlex Crichton-3/+3
2013-05-14Don't emit common warnings in rustiAlex Crichton-1/+1
2013-05-14Add regression tests for various other rusti issuesAlex Crichton-16/+17
2013-05-14Fix `use` statements with rustiAlex Crichton-1/+2
2013-05-14Get unit tests for rusti workingAlex Crichton-3/+50
* They didn't work before, because the location of the tests caused the 'sysroot' option to crate lookup to be wrong for finding the correct stage's core/std libraries. This moves the compiled tests from the $host/test directory into a $host/$stage/test directory. This means that the sysroot will be correct and the core/std libraries can actually be found * The LLVM bindings apparently aren't threadsafe, so we can't run multiple tests in parallel.
2013-05-14Fix test fallout from removing vecs_implicitly_copyableAlex Crichton-62/+52
2013-05-14Remove vecs_implicitly_copyable from the compilerAlex Crichton-18/+1
2013-05-14rusti: Remove #[allow(vecs_implicitly_copyable)]Alex Crichton-43/+43
2013-05-14syntax: Remove #[allow(vecs_implicitly_copyable)]Alex Crichton-236/+239
2013-05-14compiletest: Remove #[allow(vecs_implicitly_copyable)]Alex Crichton-217/+220
2013-05-14rustpkg: Remove #[allow(vecs_implicitly_copyable)]Alex Crichton-105/+98
2013-05-14Fix cosmetics for fail!() callsMarvin Löbel-63/+47
2013-05-14Use static string with fail!() and remove fail!(fmt!())Björn Steinbrink-554/+540
fail!() used to require owned strings but can handle static strings now. Also, it can pass its arguments to fmt!() on its own, no need for the caller to call fmt!() itself.
2013-05-14libstd: Add tests for BigRationalgifnksm-20/+56
2013-05-14libstd: `Ratio` requires `Clone` instead of `Copy`gifnksm-23/+28
This allows creating `Ratio<T>` which `T` is non-implicitly copyable types such as `BigInt`.
2013-05-14libstd: `Rational` requires `Integer` as type bounds instead of `Num`gifnksm-53/+14
2013-05-14libstd: impl `Orderable` for `BigUint`/`BigInt`gifnksm-1/+37
2013-05-14libstd: impl Num for BigUint/BigIntgifnksm-0/+4