summary refs log tree commit diff
path: root/src/tools
AgeCommit message (Collapse)AuthorLines
2016-08-15Auto merge of #35340 - michaelwoerister:incr-comp-cli-args, r=nikomatsakisbors-0/+1
Take commandline arguments into account for incr. comp. Implements the conservative strategy described in https://github.com/rust-lang/rust/issues/33727. From now one, every time a new commandline option is added, one has to specify if it influences the incremental compilation cache. I've tried to implement this as automatic as possible: One just has to added either the `[TRACKED]` or the `[UNTRACKED]` marker next to the field. The `Options`, `CodegenOptions`, and `DebuggingOptions` definitions in `session::config` show plenty of examples. The PR removes some cruft from `session::config::Options`, mostly unnecessary copies of flags also present in `DebuggingOptions` or `CodeGenOptions` in the same struct. One notable removal is the `cfg` field that contained the values passed via `--cfg` commandline arguments. I chose to remove it because (1) its content is only a subset of what later is stored in `hir::Crate::config` and it's pretty likely that reading the cfgs from `Options` would not be what you wanted, and (2) we could not incorporate it into the dep-tracking hash of the `Options` struct because of how the test framework works, leaving us with a piece of untracked but vital data. It is now recommended (just as before) to access the crate config via the `krate()` method in the HIR map. Because the `cfg` field is not present in the `Options` struct any more, some methods in the `CompilerCalls` trait now take the crate config as an explicit parameter -- which might constitute a breaking change for plugin authors.
2016-08-14Auto merge of #35638 - ahmedcharles:url, r=alexcrichtonbors-45/+20
Upgrade linkchecker to url 1.2.0.
2016-08-14Auto merge of #35666 - eddyb:rollup, r=eddybbors-4/+0
Rollup of 30 pull requests - Successful merges: #34941, #35392, #35444, #35447, #35491, #35533, #35539, #35558, #35573, #35574, #35577, #35586, #35588, #35594, #35596, #35597, #35598, #35606, #35611, #35615, #35616, #35620, #35622, #35640, #35643, #35644, #35646, #35647, #35648, #35661 - Failed merges: #35395, #35415
2016-08-14Rollup merge of #35640 - ahmedcharles:dead, r=alexcrichtonEduard-Mihai Burtescu-4/+0
compiletest: Remove dead code.
2016-08-14Auto merge of #34366 - Diggsey:rust-src-pkg, r=brsonbors-5/+7
Produce source package in rust-installer format See rust-lang/rust-buildbot#102 There may be a better way to do this, wasn't sure how to clean-up the `rust-src-image` directory when it's used by multiple make rules.
2016-08-13Fix make-tidy lock file checksDiggory Blake-5/+7
2016-08-13Auto merge of #35414 - jupp0r:feature/test-threads-flag, r=alexcrichtonbors-0/+1
Add --test-threads option to test binaries This change allows parallelism of test runs to be specified by a command line flag names --test-threads in addition to the existing environment variable RUST_TEST_THREADS. Fixes #25636.
2016-08-12compiletest: Remove dead code.Ahmed Charles-4/+0
2016-08-12Upgrade linkchecker to url 1.2.0.Ahmed Charles-45/+20
2016-08-11Always add `-Z incremental-info` to incremental compilation tests.Michael Woerister-0/+1
2016-08-11Rollup merge of #35448 - srinivasreddy:rf_compiletest, r=nikomatsakisJonathan Turner-270/+273
run rustfmt on compiletest folder in src/tools/ folder
2016-08-09Update cargo SHA to latest cargoJonathan Turner-1/+1
2016-08-07Turn on new errors, json mode. Remove duplicate unicode testJonathan Turner-3/+1
2016-08-07Add --test-threads option to test binariesJupp Müller-0/+1
This change allows parallelism of test runs to be specified by a command line flag names --test-threads in addition to the existing environment variable RUST_TEST_THREADS. Fixes #25636.
2016-08-07run rustfmt on compiletest folder in src/tools/ folderSrinivas Reddy Thatiparthy-270/+273
2016-08-05Auto merge of #35116 - jseyfried:groundwork_for_new_import_semantics, r=nrcbors-1/+1
resolve: diagnostics improvement and groundwork for RFC 1560 Fixes #35115, fixes #35135, and lays groundwork for #32213 (cc #35120). r? @nrc
2016-08-05Update `cargo_test` hash.Jeffrey Seyfried-1/+1
2016-08-02run mir opt test with mir-opt-level=3 so they fireScott A Carr-0/+2
2016-07-21Auto merge of #34715 - scottcarr:mir-test, r=nikomatsakisbors-2/+124
Add MIR Optimization Tests I've starting working on the infrastructure for testing MIR optimizations. The plan now is to have a set of test cases (written in Rust), compile them with -Z dump-mir, and check the MIR before and after each pass.
2016-07-20add mir optimization tests, dump-mir-dir optionScott A Carr-2/+124
2016-07-11Update make tidyGuillaume Gomez-2/+3
2016-07-03Auto merge of #34530 - alexcrichton:stabilize-1.11, r=aturonbors-1/+0
std: Stabilize APIs for the 1.11.0 release Although the set of APIs being stabilized this release is relatively small, the trains keep going! Listed below are the APIs in the standard library which have either transitioned from unstable to stable or those from unstable to deprecated. Stable * `BTreeMap::{append, split_off}` * `BTreeSet::{append, split_off}` * `Cell::get_mut` * `RefCell::get_mut` * `BinaryHeap::append` * `{f32, f64}::{to_degrees, to_radians}` - libcore stabilizations mirroring past libstd stabilizations * `Iterator::sum` * `Iterator::product` Deprecated * `{f32, f64}::next_after` * `{f32, f64}::integer_decode` * `{f32, f64}::ldexp` * `{f32, f64}::frexp` * `num::One` * `num::Zero` Added APIs (all unstable) * `iter::Sum` * `iter::Product` * `iter::Step` - a few methods were added to accomodate deprecation of One/Zero Removed APIs * `From<Range<T>> for RangeInclusive<T>` - everything about `RangeInclusive` is unstable Closes #27739 Closes #27752 Closes #32526 Closes #33444 Closes #34152 cc #34529 (new tracking issue)
2016-07-03std: Stabilize APIs for the 1.11.0 releaseAlex Crichton-1/+0
Although the set of APIs being stabilized this release is relatively small, the trains keep going! Listed below are the APIs in the standard library which have either transitioned from unstable to stable or those from unstable to deprecated. Stable * `BTreeMap::{append, split_off}` * `BTreeSet::{append, split_off}` * `Cell::get_mut` * `RefCell::get_mut` * `BinaryHeap::append` * `{f32, f64}::{to_degrees, to_radians}` - libcore stabilizations mirroring past libstd stabilizations * `Iterator::sum` * `Iterator::product` Deprecated * `{f32, f64}::next_after` * `{f32, f64}::integer_decode` * `{f32, f64}::ldexp` * `{f32, f64}::frexp` * `num::One` * `num::Zero` Added APIs (all unstable) * `iter::Sum` * `iter::Product` * `iter::Step` - a few methods were added to accomodate deprecation of One/Zero Removed APIs * `From<Range<T>> for RangeInclusive<T>` - everything about `RangeInclusive` is unstable Closes #27739 Closes #27752 Closes #32526 Closes #33444 Closes #34152 cc #34529 (new tracking issue)
2016-07-02Rollup merge of #34566 - ollie27:linkchecker_invalid_urls, r=alexcrichtonManish Goregaokar-23/+20
Reject invalid urls in linkchecker For example root-relative links will now be rejected. Also remove some exceptions which have since been fixed and fix a typo in the broken redirect handling.
2016-07-02Rollup merge of #34551 - GuillaumeGomez:runtest_improvement, r=alexcrichtonManish Goregaokar-8/+12
Improve runtest output
2016-06-30Improve runtest outputggomez-8/+12
It now prints only unexpected errors and expected errors which weren't found
2016-06-29Reject invalid urls in linkcheckerOliver Middleton-23/+20
For example root-relative links will now be rejected. Also remove some exceptions which have since been fixed and fix a typo in the broken redirect handling.
2016-06-29Rollup merge of #34499 - michaelwoerister:lldb-blacklist, r=alexcrichtonManish Goregaokar-0/+15
Disable debuginfo tests for a given blacklist of LLDB versions Anyone having trouble with most LLDB tests failing on OSX, please report your LLDB version here so I can add it to the blacklist. Blacklisted versions so far: * lldb-350.* cc @rust-lang/tools cc @tedhorst @indutny @jonathandturner (people from the original bug report) Fixes #32520.
2016-06-27Disable debuginfo tests for a given blacklist of LLDB versionsMichael Woerister-0/+15
2016-06-23Move errors from libsyntax to its own crateJonathan Turner-1/+1
2016-06-15Auto merge of #34220 - srinivasreddy:rf_cargotest, r=brsonbors-38/+38
run rustfmt on cargotest folder in src/tools/cargotest
2016-06-11run rustfmt on cargotest folder in src/tools/cargotestSrinivas Reddy Thatiparthy-38/+38
2016-06-11run rustfmt on linkchecker folderin src/tools/linkcheckerSrinivas Reddy Thatiparthy-37/+30
2016-06-05Auto merge of #34039 - ollie27:linkchecker_dirs, r=alexcrichtonbors-0/+6
linkchecker: Treat directory links as errors Directory links don't work well offline so they should be treated as errors. All examples of this I know of are fixed in #34021.
2016-06-03Auto merge of #33803 - WiSaGaN:feature/rename-main-thread, r=alexcrichtonbors-1/+1
Rename main thread from "<main>" to "main". Fix issue #33789 We may need to discuss whether this counts as a breaking change since code may check the main thread name against "\<main\>". Discussion is in #33789
2016-06-02linkchecker: Treat directory links as errorsOliver Middleton-0/+6
Directory links don't work well offline so they should be treated as errors.
2016-06-02Update cargo version in cargotestWangshan Lu-1/+1
2016-05-31mk: Prepare for a new stage0 compilerAlex Crichton-5/+4
This commit prepares the source for a new stage0 compiler, the 1.10.0 beta compiler. These artifacts are hot off the bots and should be ready to go.
2016-05-28Auto merge of #33848 - alexcrichton:android-gdb-sysroot, r=michaelwoeristerbors-5/+6
test: Use `set sysroot` for more NDK compatibility Recent versions of the Android NDK no longer ship debuggers like `arm-linux-androideabi-gdb`, but instead one prebuilt binary `gdb`. We can symlink this into place at least to get our detection still working, but it now needs to be told what the sysroot is so it can correctly do... something. Long story short, tests didn't pass with this change and after this change they pass.
2016-05-25trans: save metadata even with -Z no-trans.Eduard Burtescu-0/+7
2016-05-24test: Use `set sysroot` for more NDK compatibilityAlex Crichton-5/+6
Recent versions of the Android NDK no longer ship debuggers like `arm-linux-androideabi-gdb`, but instead one prebuilt binary `gdb`. We can symlink this into place at least to get our detection still working, but it now needs to be told what the sysroot is so it can correctly do... something. Long story short, tests didn't pass with this change and after this change they pass.
2016-05-18Auto merge of #33688 - jonathandturner:fix_old_school, r=nikomatsakisbors-21/+33
Fix for old school error issues, improvements to new school This PR: * Fixes some old school error issues, specifically #33559, #33543, #33366 * Improves wording borrowck errors with match patterns * De-emphasize multi-line spans, so we don't color the single source character when we're trying to say "span starts here" * Rollup of #33392 (which should help fix #33390) r? @nikomatsakis
2016-05-18pass revision and incr_comp directory to auxbuildNiko Matsakis-10/+40
This is needed for incremental compilation harness to support cross-crate testing. Also support cfg for typechecking prettyprint
2016-05-17Improve a few errors and fix #33366Jonathan Turner-19/+28
2016-05-17De-emph minimized spans, add better debugging outputJonathan Turner-7/+10
2016-05-16Auto merge of #33588 - nikomatsakis:compiletest-ui, r=acrichtobors-1/+175
add UI testing framework This adds a framework for capturing and tracking the precise output of rustc, which allows us to check all manner of minor details with the output. It's pretty strict right now -- the output must match almost exactly -- and hence maybe a bit too strict. But I figure we can add wildcards or whatever later. There is also a script intended to make updating the references easy, though the script could make things a *bit* easier (in particular, it'd be nice if it would find the build directory for you automatically). One thing I was wondering about is the best way to test colors. Since windows doesn't embed those in the output stream, this test framework can't test colors on windows -- so I figure we can just write tests that are ignored on windows and which pass `--color=always` or whatever to rustc. cc @jonathandturner r? @alexcrichton
2016-05-16pacify the mercilous tidyNiko Matsakis-1/+2
2016-05-13dump outputs, diff on UI test failureNiko Matsakis-14/+98
2016-05-13add UI testing frameworkNiko Matsakis-1/+90
2016-05-11Use symlink_metadata in tidy to avoid panicking on broken symlinks.Eduard Burtescu-1/+1