summary refs log tree commit diff
path: root/src/librustpkg
AgeCommit message (Collapse)AuthorLines
2013-07-01auto merge of #7409 : alexcrichton/rust/threadsafe, r=cmrbors-14/+10
@catamorphism, this re-enables threadsafe rustpkg tests, @brson this will fail unless the bots have LLVM rebuilt, so this is a good indicator of whether that happened or not.
2013-07-01Turn on using LLVM threadsafelyAlex Crichton-14/+10
2013-06-30auto merge of #7487 : huonw/rust/vec-kill, r=cmrbors-6/+6
Continuation of #7430. I haven't removed the `map` method, since the replacement `v.iter().transform(f).collect::<~[SomeType]>()` is a little ridiculous at the moment.
2013-06-30Bump version from 0.7-pre to 0.7Brian Anderson-1/+1
2013-06-30rustpkg: Ignore a test that's failing on the dist-snap botBrian Anderson-0/+1
2013-06-30Convert vec::{rposition, rposition_elem, position_elem, contains} to methods.Huon Wilson-6/+6
2013-06-29Great renaming: propagate throughout the rest of the codebaseCorey Richardson-60/+44
2013-06-29auto merge of #7439 : catamorphism/rust/cut-rustpkg-output, r=catamorphismbors-3/+7
Closes #7250
2013-06-29Remove unused variableJordi Boggiano-1/+0
2013-06-28librustc: Fix even *more* merge fallout!Patrick Walton-0/+1
2013-06-28librustc: Fix merge fallout and test cases.Patrick Walton-1/+1
2013-06-28librustc: Rewrite reachability and forbid duplicate methods in type ↵Patrick Walton-1/+14
implementations. This should allow fewer symbols to be exported.
2013-06-28auto merge of #7397 : catamorphism/rust/rustpkg_path, r=catamorphismbors-11/+85
r? @brson Unfortunately, the main test for this is ignored due to #7071. Closes #5682
2013-06-27rustpkg: Implement RUST_PATHTim Chevalier-11/+85
Unfortunately, the main test for this is ignored due to #7071. Closes #5682
2013-06-27rustpkg: Silence extra output from rustpkg testsTim Chevalier-3/+7
Closes #7250
2013-06-27auto merge of #7430 : huonw/rust/vec-kill, r=thestingerbors-3/+2
2013-06-27auto merge of #7429 : Blei/rust/delete-shared, r=huonwbors-1/+1
Mostly just low-haning fruit, i.e. function arguments that were @ even though & would work just as well. Reduces librustc.so size by 200k when compiling without -O, by 100k when compiling with -O.
2013-06-27Remove many shared pointersPhilipp Brüschweiler-1/+1
Mostly just low-haning fruit, i.e. function arguments that were @ even though & would work just as well. Reduces librustc.so size by 200k when compiling without -O, by 100k when compiling with -O.
2013-06-27auto merge of #7403 : catamorphism/rust/package-scripts, r=brsonbors-21/+165
r? @brson (or @graydon if available) rustpkg/api.rs provides functions intended for package scripts to call. It will probably need more functionality added to it later, but this is a start. Added a test case checking that a package script can use the API. Closes #6401
2013-06-27Convert vec::[mut_]slice to methods, remove vec::const_slice.Huon Wilson-3/+2
2013-06-26auto merge of #7420 : mozilla/rust/rollup, r=thestingerbors-4/+4
2013-06-26auto merge of #7382 : msullivan/rust/cleanup, r=bblumbors-10/+9
2013-06-26Refactor extra::term a bitKevin Ballard-4/+4
Move all the colors into a nested mod named color instead of prefixing with "color_". Define a new type color::Color, and make this a u16 instead of a u8 (to allow for easy comparisons against num_colors, which is a u16). Remove color_supported and replace it with num_colors. Teach fg() and bg() to "dim" bright colors down to the normal intensity if num_colors isn't high enough. Remove unnecessary copies, and fix a bug where a terminfo parse failure would try to use the wrong error and end up failing.
2013-06-25rustpkg: Begin allowing package scripts to call the default build logicTim Chevalier-21/+165
rustpkg/api.rs provides functions intended for package scripts to call. It will probably need more functionality added to it later, but this is a start. Added a test case checking that a package script can use the API. Closes #6401
2013-06-25Fix some tests in rustpkg to not pollute the build directory. Closes #7278.Michael Sullivan-10/+9
2013-06-25Rename all files with the 'rc' extensionAlex Crichton-0/+0
2013-06-23vec: remove BaseIter implementationDaniel Micay-14/+15
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-13/+13
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-20Ignore rustpkg testsJames Miller-1/+1
2013-06-15auto merge of #7148 : catamorphism/rust/rustpkg_tests, r=graydonbors-120/+558
r? @graydon Automate more tests described in the commands.txt file, and add infrastructure for running them. Right now, tests shell out to call rustpkg. This is not ideal. Goes part of the way towards addressing #5683
2013-06-15auto merge of #7125 : alexcrichton/rust/rusti-issues, r=brsonbors-5/+11
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-14rustpkg: Write more automated testsTim Chevalier-120/+558
Automate more tests described in the commands.txt file, and add infrastructure for running them. Right now, tests shell out to call rustpkg. This is not ideal.
2013-06-14add IteratorUtil to the preludeDaniel Micay-3/+0
2013-06-13Resolve LLVM crashing in rustpkg testsAlex Crichton-5/+11
2013-06-13Use @str instead of @~str in libsyntax and librustc. Fixes #5048.Huon Wilson-15/+15
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-12Silence some warnings.Huon Wilson-2/+2
2013-06-12std: convert str::replace to a method.Huon Wilson-1/+1
2013-06-12std: unify the str -> [u8] functions as 3 methods: .as_bytes() and ↵Huon Wilson-2/+1
.as_bytes_with_null[_consume](). The first acts on &str and is not nul-terminated, the last two act on strings that are always null terminated (&'static str, ~str and @str).
2013-06-11auto merge of #7056 : alexcrichton/rust/issue-4727, r=catamorphismbors-1/+1
Closes #4727
2013-06-11Ignore the test_package_request_version test for nowAlex Crichton-1/+1
2013-06-11option: remove redundant old_iter implsDaniel Micay-3/+3
2013-06-11fix tests, remove some warningsHuon Wilson-2/+2
2013-06-11std: remove str::to_charsHuon Wilson-3/+2
2013-06-10std: remove str::{connect,concat}*.Huon Wilson-2/+2
2013-06-10std: convert character-based str::find_* to methods. Add .slice_{to,from} ↵Huon Wilson-1/+1
methods.
2013-06-10std: fix compile & testHuon Wilson-6/+4
2013-06-10std: replace str::each_split* with an iteratorHuon Wilson-5/+5
2013-06-09rustpkg: Accept package IDs like github.com/foo/bar#0.3Tim Chevalier-341/+542
If the package ID is of the form s#v, where v is a valid version string, fetch tag v of that package.
2013-06-08rustpkg: Extract version number from git, as per #5684Tim Chevalier-61/+178
For now, the test I added just checks that PkgId::new parses the version number out of a git repo's tags list, where relevant.
2013-06-06Clean up a handful of build warnings.Michael Sullivan-5/+3