summary refs log tree commit diff
path: root/src/librusti
AgeCommit message (Collapse)AuthorLines
2013-07-01Ignore all rusti tests harder. #7541Brian Anderson-1/+2
2013-07-01Ignore all rusti tests. #7541Brian Anderson-1/+2
2013-07-01Turn on using LLVM threadsafelyAlex Crichton-34/+49
2013-06-30Bump version from 0.7-pre to 0.7Brian Anderson-2/+2
2013-06-28librustc: Fix merge fallout and test cases.Patrick Walton-0/+666
2013-06-28librustc: Remove the broken overloaded assign-ops from the language.Patrick Walton-1/+2
They evaluated the receiver twice. They should be added back with `AddAssign`, `SubAssign`, etc., traits.
2013-06-27Convert vec::[mut_]slice to methods, remove vec::const_slice.Huon Wilson-2/+2
2013-06-26Fix a formatting bug in rustiAlex Crichton-1/+6
2013-06-25remove `each` from vec, HashMap and HashSetDaniel Micay-4/+4
2013-06-25Rename all files with the 'rc' extensionAlex Crichton-0/+0
2013-06-23vec: remove BaseIter implementationDaniel Micay-8/+8
I removed the `static-method-test.rs` test because it was heavily based on `BaseIter` and there are plenty of other more complex uses of static methods anyway.
2013-06-21vec: rm old_iter implementations, except BaseIterDaniel Micay-3/+3
The removed test for issue #2611 is well covered by the `std::iterator` module itself. This adds the `count` method to `IteratorUtil` to replace `EqIter`.
2013-06-18rusti: Disable tests on macos harderBrian Anderson-4/+4
2013-06-18rusti: disable tests on 32bit mac. r=burningtree.Graydon Hoare-0/+6
2013-06-16std: allow any sort of string to be Added with +.Huon Wilson-1/+1
2013-06-15auto merge of #7125 : alexcrichton/rust/rusti-issues, r=brsonbors-2/+12
This un-reverts the reverts of the rusti commits made awhile back. These were reverted for an LLVM failure in rustpkg. I believe that this is not a problem with these commits, but rather that rustc is being used in parallel for rustpkg tests (in-process). This is not working yet (almost! see #7011), so I serialized all the tests to run one after another. @brson, I'm mainly just guessing as to the cause of the LLVM failures in rustpkg tests. I'm confident that running tests in parallel is more likely to be the problem than those commits I made. Additionally, this fixes two recently reported issues with rusti.
2013-06-14add IteratorUtil to the preludeDaniel Micay-3/+0
2013-06-13Resolve LLVM crashing in rustpkg testsAlex Crichton-1/+1
2013-06-13Correctly parse commands for rustiAlex Crichton-1/+11
Closes #7120
2013-06-13Revert "Revert "Have JIT execution take ownership of the LLVMContextRef""Alex Crichton-4/+0
This reverts commit 19adece68b00bd1873499cca6f1537750608d769.
2013-06-13Revert "Revert "Remove all usage of the global LLVMContextRef""Alex Crichton-0/+4
This reverts commit 541c657a738006d78171aa261125a6a46f283b35.
2013-06-13Revert "Remove all usage of the global LLVMContextRef"Brian Anderson-4/+0
This reverts commit 779191cd4b8719e8efdf69fb6da93e2a8905ca1d. Conflicts: src/librustc/middle/trans/base.rs src/librustc/middle/trans/common.rs
2013-06-13Revert "Have JIT execution take ownership of the LLVMContextRef"Brian Anderson-0/+4
This reverts commit 5c5095d25e3652c434c8d4ec178e6844877e3c2d. Conflicts: src/librusti/rusti.rc
2013-06-12Rewrite rustiAlex Crichton-162/+777
2013-06-13Use @str instead of @~str in libsyntax and librustc. Fixes #5048.Huon Wilson-3/+3
This almost removes the StringRef wrapper, since all strings are Equiv-alent now. Removes a lot of `/* bad */ copy *`'s, and converts several things to be &'static str (the lint table and the intrinsics table). There are many instances of .to_managed(), unfortunately.
2013-06-12std: remove substr & str::count_*, methodise char_len, implement slice_chars.Huon Wilson-2/+3
The confusing mixture of byte index and character count meant that every use of .substr was incorrect; replaced by slice_chars which only uses character indices. The old behaviour of `.substr(start, n)` can be emulated via `.slice_from(start).slice_chars(0, n)`.
2013-06-10Have JIT execution take ownership of the LLVMContextRefAlex Crichton-3/+5
Also stop leaking the ExecutionEngine created for jit code by forcibly disposing of it after the JIT code has finished executing
2013-06-10std: remove str::{connect,concat}*.Huon Wilson-1/+1
2013-06-10std: convert str::trim* to methods.Huon Wilson-1/+1
2013-06-10std: replace str::each_split* with an iteratorHuon Wilson-2/+4
2013-06-05removed some interner fieldsJohn Clements-1/+1
2013-06-04std::cell: Modernize constructorsPhilipp Brüschweiler-2/+2
Part of #3853
2013-06-01rustc/rusti/rustpkg: Infer packages from `extern mod` directivesTim Chevalier-6/+7
This commit won't be quite as useful until I implement RUST_PATH and until we change `extern mod` to take a general string instead of an identifier (#5682 and #6407). With that said, now if you're using rustpkg and a program contains: extern mod foo; rustpkg will attempt to search for `foo`, so that you don't have to provide a -L directory explicitly. In addition, rustpkg will actually try to build and install `foo`, unless it's already installed (specifically, I tested that `extern mod extra;` would not cause it to try to find source for `extra` and compile it again). This is as per #5681. Incidentally, I changed some driver code to infer the link name from the crate link_meta attributes. If that change isn't ok, say something. Also, I changed the addl_lib_search_paths field in the session options to be an @mut ~[Path] so that it can be modified after expansion but before later phases.
2013-05-30Remove a bunch of unnecessary allocations and copiesBjörn Steinbrink-6/+5
2013-05-29librustc: Stop reexporting the standard modules from prelude.Patrick Walton-10/+10
2013-05-29auto merge of #6733 : alexcrichton/rust/issue-2400, r=brsonbors-2/+3
Most of the relevant information can be found in the commit messages. r? @brson - I just wanted to make sure the make changes aren't completely bogus This would close #2400, #6517, and #6489 (although a run through incoming-full on linux would have to confirm the latter two)
2013-05-29auto merge of #6793 : graydon/rust/drop-ast-before-llvm, r=Aatchbors-3/+4
2013-05-28Un-ignore rusti/rustpkg tests on i686Alex Crichton-2/+3
2013-05-28librustc: drop AST before running LLVM, frees 400mb on a librustc buildGraydon Hoare-3/+4
2013-05-28Silence various warnings throughout test modulesAlex Crichton-6/+6
2013-05-23cleanup warnings from librustiErick Tryzelaar-3/+3
2013-05-23more testing fallout from core->std/std->extra moveTed Horst-0/+1
2013-05-22libextra: Rename the actual metadata names of libcore to libstd and libstd ↵Patrick Walton-1/+7
to libextra
2013-05-22"Type :help for help", similar to ghcikud1ing-1/+1
2013-05-19reduce the usage of explicit version markersDaniel Micay-3/+3
2013-05-14rusti: Ignore tests. Failing on i686. #6489Brian Anderson-1/+1
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.