summary refs log tree commit diff
path: root/src/tools
AgeCommit message (Collapse)AuthorLines
2017-08-13Update cargo submoduleAlex Crichton-0/+0
2017-07-18Remove all packaging support for the RLSAlex Crichton-10/+0
2017-07-17Prepare the 1.20.0 beta releaseAlex Crichton-0/+0
This commit prepares the freshly branched `beta` branch to start bootstrapping from the 1.19.0 preview artifacts as well as build in beta mode.
2017-07-17Run RLS testsNick Cameron-0/+0
2017-07-17Remove exception from license check for strings.rsNick Cameron-1/+0
2017-07-15Auto merge of #43207 - alexcrichton:update-cargo, r=nikomatsakisbors-0/+0
Update the `cargo` submodule Notably pull in an update to the `jobserver` crate to have Cargo set the `CARGO_MAKEFLAGS` environment variable instead of the `MAKEFLAGS` environment variable. cc https://github.com/rust-lang/rust/issues/42635
2017-07-13Update the `cargo` submoduleAlex Crichton-0/+0
Notably pull in an update to the `jobserver` crate to have Cargo set the `CARGO_MAKEFLAGS` environment variable instead of the `MAKEFLAGS` environment variable.
2017-07-13Reduce the usage of features in compiletest and libtestOliver Schneider-2/+1
2017-07-11update crate dependenciessteveklabnik-2/+2
I wanted to update mdbook's version. This ended up updating a bunch of other stuff too.
2017-07-11compiletest: Support custom normalization rules.kennytm-6/+65
2017-07-11compiletest: Refactor: Move the `ignore-{}` logic into its own method.kennytm-30/+34
Prepare for `normalize-std???` which will share the same logic. Added `ignore-32bit` and `ignore-64bit`.
2017-07-10Update rls to pull rustfmt with libsyntax changesVadim Petrochenkov-0/+0
2017-07-06Auto merge of #42899 - alexcrichton:compiler-builtins, r=nikomatsakisbors-0/+1
Switch to rust-lang-nursery/compiler-builtins This commit migrates the in-tree `libcompiler_builtins` to the upstream version at https://github.com/rust-lang-nursery/compiler-builtins. The upstream version has a number of intrinsics written in Rust and serves as an in-progress rewrite of compiler-rt into Rust. Additionally it also contains all the existing intrinsics defined in `libcompiler_builtins` for 128-bit integers. It's been the intention since the beginning to make this transition but previously it just lacked the manpower to get done. As this PR likely shows it wasn't a trivial integration! Some highlight changes are: * The PR rust-lang-nursery/compiler-builtins#166 contains a number of fixes across platforms and also some refactorings to make the intrinsics easier to read. The additional testing added there also fixed a number of integration issues when pulling the repository into this tree. * LTO with the compiler-builtins crate was fixed to link in the entire crate after the LTO process as these intrinsics are excluded from LTO. * Treatment of hidden symbols was updated as previously the `#![compiler_builtins]` crate would mark all symbol *imports* as hidden whereas it was only intended to mark *exports* as hidden.
2017-07-05Merge remote-tracking branch 'origin/master' into proc_macro_apiAlex Crichton-95/+81
2017-07-05Switch to rust-lang-nursery/compiler-builtinsAlex Crichton-0/+1
This commit migrates the in-tree `libcompiler_builtins` to the upstream version at https://github.com/rust-lang-nursery/compiler-builtins. The upstream version has a number of intrinsics written in Rust and serves as an in-progress rewrite of compiler-rt into Rust. Additionally it also contains all the existing intrinsics defined in `libcompiler_builtins` for 128-bit integers. It's been the intention since the beginning to make this transition but previously it just lacked the manpower to get done. As this PR likely shows it wasn't a trivial integration! Some highlight changes are: * The PR rust-lang-nursery/compiler-builtins#166 contains a number of fixes across platforms and also some refactorings to make the intrinsics easier to read. The additional testing added there also fixed a number of integration issues when pulling the repository into this tree. * LTO with the compiler-builtins crate was fixed to link in the entire crate after the LTO process as these intrinsics are excluded from LTO. * Treatment of hidden symbols was updated as previously the `#![compiler_builtins]` crate would mark all symbol *imports* as hidden whereas it was only intended to mark *exports* as hidden.
2017-07-02Update cargoest31-0/+0
... to get https://github.com/rust-lang/cargo/pull/4244 and https://github.com/rust-lang/cargo/pull/4246
2017-07-01Auto merge of #42977 - Keruspe:master, r=alexcrichtonbors-0/+0
rustbuild: set __CARGO_DEFAULT_LIB_METADATA to channel Also, update the cargo submodule to handle the new value.
2017-07-01Auto merge of #42896 - llogiq:clippy_compiletest, r=alexcrichtonbors-94/+79
fixed some clippy warnings in compiletest This is mainly readability stuff. Whenever the `clone_ref` lint asked me to clone the dereferenced object, I removed the `.clone()` instead, relying on the fact that it has worked so far and the immutable borrow ensures that the value won't change.
2017-06-30Rollup merge of #42911 - nrc:rls-update, r=brsonGuillaume Gomez-0/+0
Update RLS submodule
2017-06-30update cargo submoduleMarc-Antoine Perennou-0/+0
This brings in several fixes and the new handling of __CARGO_DEFAULT_LIB_METADATA Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
2017-06-29fix a stray semicolonAndre Bogus-1/+1
2017-06-29Rollup merge of #42219 - pwoolcoc:add-allow-fail-to-libtest, r=GuillaumeGomezAriel Ben-Yehuda-0/+1
add `allow_fail` test attribute This change allows the user to add an `#[allow_fail]` attribute to tests that will cause the test to compile & run, but if the test fails it will not cause the entire test run to fail. The test output will show the failure, but in yellow instead of red, and also indicate that it was an allowed failure. Here is an example of the output: http://imgur.com/a/wt7ga
2017-06-28Update RLS submoduleNick Cameron-0/+0
2017-06-27address tidy error & commentAndre Bogus-4/+3
2017-06-26Rollup merge of #42917 - kennytm:gdb-fatal-proc-rec, r=Mark-SimulacrumCorey Farwell-1/+1
compiletest: show details why GDB failed to execute. Help finding reasons of spurious errors due to GDB failing to run (#42693).
2017-06-27compiletest: show details if GDB failed to execute.kennytm-1/+1
2017-06-26Update CargoMark Simulacrum-0/+0
2017-06-26Fix a semantic merge conflictAlex Crichton-1/+1
2017-06-26Implement `quote!` and other `proc_macro` API.Jeffrey Seyfried-9/+1
2017-06-25fixed some clippy warnings in compiletestAndre Bogus-93/+79
2017-06-24Auto merge of #42784 - tlively:wasm-bot, r=alexcrichtonbors-1/+0
Make wasm32 buildbot test LLVM backend This adds the experimental targets option to configure so it can be used by the builders and changes the wasm32 Dockerfile accordingly. Instead of using LLVM from the emsdk, the builder's emscripten tools now uses the Rust in-tree LLVM, since this is the one built with wasm support.
2017-06-24Auto merge of #42541 - gilescope:patch-1, r=alexcrichtonbors-0/+0
assert_eq failure message easier to read By having the left and right strings aligned with one another it helps spot the difference between the two far quicker than if they are on the same line. E.g. Before: ``` thread 'tests::test_safe_filename' panicked at 'assertion failed: `(left == right)` left: `"-aandb--S123.html"` right: `"-aandb-S123.html"`', ``` After: ``` thread 'tests::test_safe_filename' panicked at 'assertion failed: `(left == right)` left: `"-aandb--S123.html"` right: `"-aandb-S123.html"`', ``` When the strings are both on the same line it take a lot longer to spot the difference. It is a small change but the small time savings add up with repetition. This would help Rust be an excellent language to write tests in out of the box. Closes https://github.com/rust-lang/rust/issues/41615
2017-06-24add `allow_fail` test attributePaul Woolcock-0/+1
This change allows the user to add an `#[allow_fail]` attribute to tests that will cause the test to compile & run, but if the test fails it will not cause the entire test run to fail. The test output will show the failure, but in yellow instead of red, and also indicate that it was an allowed failure.
2017-06-23Added a tidy check to disallow "```ignore" and "```rust,ignore".kennytm-0/+15
2017-06-22Add target option for linker environment variablesThomas Lively-8/+2
This is used in wasm32-experimental-emscripten to ensure that emscripten links against the libc bitcode files produced by the wasm LLVM backend, instead of using fastcomp.
2017-06-22Make wasm32 buildbot test LLVM backendThomas Lively-3/+8
This adds the experimental targets option to configure so it can be used by the builders and changes the wasm32 Dockerfile accordingly. Instead of using LLVM from the emsdk, the builder's emscripten tools now uses the Rust in-tree LLVM, since this is the one built with wasm support.
2017-06-22Updating cargo to latestGiles Cope-0/+0
2017-06-21Rollup merge of #42766 - nrc:versions, r=nagisaCorey Farwell-0/+0
Update rls-data version And update the RLS submod
2017-06-20Switch to the crates.io `getopts` crateAlex Crichton-52/+52
This commit deletes the in-tree `getopts` crate in favor of the crates.io-based `getopts` crate. The main difference here is with a new builder-style API, but otherwise everything else remains relatively standard.
2017-06-20Remove the in-tree `flate` crateAlex Crichton-3/+0
A long time coming this commit removes the `flate` crate in favor of the `flate2` crate on crates.io. The functionality in `flate2` originally flowered out of `flate` itself and is additionally the namesake for the crate. This will leave a gap in the naming (there's not `flate` crate), which will likely cause a particle collapse of some form somewhere.
2017-06-20Update RLS submodNick Cameron-0/+0
2017-06-20Updating cargo to include #4181.Giles Cope-0/+0
2017-06-19Auto merge of #42722 - est31:master, r=Mark-Simulacrumbors-14/+14
Remove SUMMARY.md of the unstable book as its autogenerated Its being autogenerated now, as of PR #42612. It seems I forgot to remove it. Also, sort the entries of SUMMARY.md alphabetically.
2017-06-18Sort entries of SUMMARY.md alphabeticallyest31-14/+14
2017-06-17Update cargo/rls submodules and dependenciesAlex Crichton-0/+0
Brings in a few regression fixes on the Cargo side, updates the rls to work with the newer Cargo, and also updates other crates.io dependencies to pull in various bug fixes and such.
2017-06-16Introduce tidy lint to check for inconsistent tracking issuesest31-31/+67
This commit * Refactors the collect_lib_features function to work in a non-checking mode (no bad pointer needed, and list of lang features). * Introduces checking whether unstable/stable tags for a given feature have inconsistent tracking issues. * Fixes such inconsistencies throughout the codebase.
2017-06-16Auto merge of #42612 - est31:master, r=nagisabors-129/+362
Autogenerate stubs and SUMMARY.md in the unstable book Removes a speed bump in compiler development by autogenerating stubs for features in the unstable book. See #42454 for discussion. The PR contains three commits, separated in order to make review easy: * The first commit converts the tidy tool from a binary crate to a crate that contains both a library and a binary. In the second commit, we'll use the tidy library * The second and main commit introduces autogeneration of SUMMARY.md and feature stub files * The third commit turns off the tidy lint that checks for features without a stub, and removes the stub files. A separate commit due to the large number of files touched Members of the doc team who wish to document some features can either do this (where `$rustsrc` is the root of the rust repo git checkout): 1. cd to `$rustsrc/src/tools/unstable-book-gen` and then do `cargo run $rustsrc/src $rustsrc/src/doc/unstable-book` to put the stubs into the unstable book 2. cd to `$rustsrc` and run `git ls-files --others --exclude-standard` to list the newly added stubs 3. choose a file to edit, then `git add` it and `git commit` 4. afterwards, remove all changes by the tool by doing `git --reset hard` and `git clean -f` Or they can do this: 1. remove the comment marker in `src/tools/tidy/src/unstable_book.rs` line 122 2. run `./x.py test src/tools/tidy` to list the unstable features which only have stubs 3. revert the change in 1 3. document one of the chosen unstable features The changes done by this PR also allow for further development: * tidy obtains information about tracking issues. We can now forbid differing tracking issues between differing `#![unstable]` annotations. I haven't done this but plan to in a future PR * we now have a general framework for generating stuff for the unstable book at build time. Further changes can autogenerate a list of the API a given library feature exposes. The old way to simply click through the documentation after it has been uploaded to rust-lang.org works as well. r? @nagisa Fixes #42454
2017-06-16Auto merge of #42410 - nagisa:llvmup, r=sanxiynbors-0/+8
Upgrade LLVM Includes https://github.com/rust-lang/llvm/pull/80
2017-06-15Add a no-system-llvm compilecheck headerSimonas Kazlauskas-0/+8
2017-06-13Merge crate `collections` into `alloc`Murarth-5/+5