summary refs log tree commit diff
path: root/src/librustpkg
AgeCommit message (Collapse)AuthorLines
2014-01-07Fixup the rest of the tests in the compilerAlex Crichton-0/+1
2014-01-07Fix remaining cases of leaking importsAlex Crichton-0/+2
2014-01-08Renamed Option::map_default and mutate_default to map_or and mutate_or_setMarvin Löbel-6/+6
2014-01-06auto merge of #11327 : nielsle/rust/rustpkg_argparse, r=alexcrichtonbors-274/+331
Rearrange some code in rustpkg: * Move command line argument parsing to parse_args.rs * Introduce an enum to descibe commands such as Build, Install, and Clean. * Move sysroot from Context to BuildContext, to make parse_args more modular. This is my first pull request, so please tell me if there is anything I need to do.
2014-01-06Disowned the Visitor.Eduard Burtescu-9/+13
2014-01-05Fix some of the testcasesNiels langager Ellegaard-4/+4
simple-lib and deeply and c-dependencies still have problems. But they were nt caused by this pull request
2014-01-05Make rustc's own lib directory configurable and change the default to ↵Jan Niklas Hasse-4/+5
rustlib. Fixes #3319
2014-01-05Move command line parsing to parse_args.rsNiels langager Ellegaard-160/+219
2014-01-05Move syslog to BuildContextNiels langager Ellegaard-32/+20
2014-01-05Command is now an enumNiels langager Ellegaard-88/+98
2014-01-03librustpkg: De-`@mut` `rustpkg`Patrick Walton-14/+13
2014-01-02Bump version to 0.9Brian Anderson-1/+1
2014-01-02auto merge of #10696 : fhahn/rust/issue9543-remove-extern-mod-foo, r=pcwaltonbors-4/+23
This patch for #9543 throws an `obsolete syntax` error for `extern mod foo (name="bar")` . I was wondering if [this](https://github.com/fhahn/rust/compare/mozilla:master...fhahn:issue9543-remove-extern-mod-foo?expand=1#diff-da9d34ca1d0f6beee2838cf02e07345cR4444) is the correct place to do this? I think the wording of the error message could probably be improved as well. If this approach is OK, I'm going to run the whole test suite tomorrow and update the old syntax to the new one.
2014-01-02Inject std libs with versionsFlorian Hahn-3/+22
2014-01-01Remove `extern mod foo (name="bar")` syntax, closes #9543Florian Hahn-1/+1
2014-01-01syntax::codemap: Add static DUMMY_SPklutzy-2/+2
It replaces `dummy_sp()`.
2014-01-01rustc::driver: Remove two @sklutzy-3/+3
2013-12-31Generate --dep-info earlier in the compillation.SiegeLord-1/+1
2013-12-30auto merge of #11182 : luisbg/rust/crateid, r=cmrbors-290/+292
Issue #11048
2013-12-29Make ast_fold take &mut selfSteven Fackler-5/+5
2013-12-29Rename uses of PkgId to CrateId in librustpkgLuis de Bethencourt-290/+292
2013-12-28Stop using @ExtCtxtSteven Fackler-1/+1
2013-12-26librustc: De-`@mut` the additional library search pathsPatrick Walton-11/+27
2013-12-26Register new snapshotsAlex Crichton-2/+0
2013-12-25Test fixes and rebase conflictsAlex Crichton-4/+5
* vec::raw::to_ptr is gone * Pausible => Pausable * Removing @ * Calling the main task "<main>" * Removing unused imports * Removing unused mut * Bringing some libextra tests up to date * Allowing compiletest to work at stage0 * Fixing the bootstrap-from-c rmake tests * assert => rtassert in a few cases * printing to stderr instead of stdout in fail!()
2013-12-24std: Stop reexporting the contents of 'mod consts'Alex Crichton-1/+1
This prevents usage of the win32 utf-16 helper functions from outside of libstd. Closes #9053
2013-12-19Rename pkgid to crate_idCorey Richardson-5/+7
Closes #11035
2013-12-15Register new snapshotsAlex Crichton-8/+1
Understand 'pkgid' in stage0. As a bonus, the snapshot now contains now metadata (now that those changes have landed), and the snapshot download is half as large as it used to be!
2013-12-15auto merge of #10984 : huonw/rust/clean-raw, r=cmrbors-6/+3
See commits for details.
2013-12-15std::vec: remove unnecessary count parameter on {bytes,Huon Wilson-6/+3
raw}::copy_memory. Slices carry their length with them, so we can just use that information.
2013-12-15auto merge of #10948 : cmr/rust/update_pkgid, r=metajackbors-1/+1
2013-12-14librustpkg: don't clobber the crate attributes for the pkgidCorey Richardson-1/+1
2013-12-14auto merge of #10936 : ↵bors-67/+112
cadencemarseille/rust/issue-10754-std-run-unwrap-on-None, r=alexcrichton The problem was that std::run::Process::new() was unwrap()ing the result of std::io::process::Process::new(), which returns None in the case where the io_error condition is raised to signal failure to start the process. Have std::run::Process::new() similarly return an Option\<run::Process\> to reflect the fact that a subprocess might have failed to start. Update utility functions run::process_status() and run::process_output() to return Option\<ProcessExit\> and Option\<ProcessOutput\>, respectively. Various parts of librustc and librustpkg needed to be updated to reflect these API changes. closes #10754
2013-12-14Fix #10754 - `std::run` functions fail after io_errorCadence Marseille-67/+112
The problem was that std::run::Process::new() was unwrap()ing the result of std::io::process::Process::new(), which returns None in the case where the io_error condition is raised to signal failure to start the process. Have std::run::Process::new() similarly return an Option<run::Process> to reflect the fact that a subprocess might have failed to start. Update utility functions run::process_status() and run::process_output() to return Option<ProcessExit> and Option<ProcessOutput>, respectively. Various parts of librustc and librustpkg needed to be updated to reflect these API changes. closes #10754
2013-12-14auto merge of #10938 : jhasse/rust/patch-rustpkg, r=alexcrichtonbors-3/+4
rustpkg assumes library files to be in a directory called `lib`, but on Windows they are instead in the `bin` directory. This patch changes nothing on Unix system, since `libdir()` returns `"lib"` there.
2013-12-13auto merge of #10698 : metajack/rust/dep-info, r=alexcrichtonbors-2/+3
This isn't super useful for libraries yet without #10593. Fixes #7633.
2013-12-12Add --dep-info to write Makefile-compatible dependency info.Jack Moffitt-2/+3
When --dep-info is given, rustc will write out a `$input_base.d` file in the output directory that contains Makefile compatible dependency information for use with tools like make and ninja.
2013-12-12Use libdir() instead of hard coded string. Fixes #10903Jan Niklas Hasse-3/+4
2013-12-11Make 'self lifetime illegal.Erik Price-12/+12
Also remove all instances of 'self within the codebase. This fixes #10889.
2013-12-10auto merge of #10791 : pcwalton/rust/decelling, r=pcwaltonbors-4/+16
34 uses of `Cell` remain. r? @alexcrichton
2013-12-10Make crate hash stable and externally computable.Jack Moffitt-75/+89
This replaces the link meta attributes with a pkgid attribute and uses a hash of this as the crate hash. This makes the crate hash computable by things other than the Rust compiler. It also switches the hash function ot SHA1 since that is much more likely to be available in shell, Python, etc than SipHash. Fixes #10188, #8523.
2013-12-10librustpkg: Make `io::ignore_io_error()` use RAII; remove a few morePatrick Walton-4/+16
cells.
2013-12-08Remove dead codesKiet Tran-70/+9
2013-12-06auto merge of #10364 : Kimundi/rust/result_compose, r=alexcrichtonbors-1/+1
This implements parts of the changes to `Result` and `Option` I proposed and discussed in this thread: https://mail.mozilla.org/pipermail/rust-dev/2013-November/006254.html This PR includes: - Adding `ok()` and `err()` option adapters for both `Result` variants. - Removing `get_ref`, `expect` and iterator constructors for `Result`, as they are reachable with the variant adapters. - Removing `Result`s `ToStr` bound on the error type because of composability issues. (See https://mail.mozilla.org/pipermail/rust-dev/2013-November/006283.html) - Some warning cleanups
2013-12-06Link rustllvm statically, and distribute a static snapshotAlex Crichton-0/+1
In order to keep up to date with changes to the libraries that `llvm-config` spits out, the dependencies to the LLVM are a dynamically generated rust file. This file is now automatically updated whenever LLVM is updated to get kept up-to-date. At the same time, this cleans out some old cruft which isn't necessary in the makefiles in terms of dependencies. Closes #10745 Closes #10744
2013-12-06Made Results API more composableMarvin Löbel-1/+1
2013-12-04Revert "libstd: Change `Path::new` to `Path::init`."Kevin Ballard-65/+65
This reverts commit c54427ddfbbab41a39d14f2b1dc4f080cbc2d41b. Leave the #[ignores] in that were added to rustpkg tests. Conflicts: src/librustc/driver/driver.rs src/librustc/metadata/creader.rs
2013-12-04std::str: s/from_utf8_slice/from_utf8/, to make the basic case shorter.Huon Wilson-21/+21
2013-12-04std::str: remove from_utf8.Huon Wilson-31/+31
This function had type &[u8] -> ~str, i.e. it allocates a string internally, even though the non-allocating version that take &[u8] -> &str and ~[u8] -> ~str are all that is necessary in most circumstances.
2013-12-03Register new snapshotsAlex Crichton-1/+0