about summary refs log tree commit diff
path: root/src/tools
AgeCommit message (Collapse)AuthorLines
2019-05-13update miriRalf Jung-19/+5
2019-05-13Remove bitrig support from rustMarcel Hellwig-6/+2
2019-05-12Change compare mode to use -Zborrowck=mirMatthew Jasper-2/+1
2019-05-12Auto merge of #60474 - mati865:musl_toolchain, r=alexcrichtonbors-1/+14
Make tests compatible with musl host As an alternative to passing explicit linker all over the place I could try linking `cc` to musl gcc since this bootstraps itself. Assigning for discussion: r? @alexcrichton
2019-05-11Update clippyManish Goregaokar-9/+17
2019-05-10Make tests compatible with musl hostMateusz Mikuła-1/+14
2019-05-10Auto merge of #60585 - sunfishcode:wasm32-wasi, r=alexcrichtonbors-1/+1
Omit the vendor component in the WASI triple This renames wasm32-unknown-wasi to wasm32-wasi, omitting the vendor component. This follows aarch64-linux-android, x86_64-fuchsia, and others in omitting the vendor field, which has the advantage of aligning with the [multiarch tuple](https://wiki.debian.org/Multiarch/Tuples), and of being less noisy. r? @alexcrichton
2019-05-09Switch to SPDX 2.1 license expressionDavid Tolnay-5/+5
According to the Cargo Reference: https://doc.rust-lang.org/cargo/reference/manifest.html > This is an SPDX 2.1 license expression for this package. Currently > crates.io will validate the license provided against a whitelist of > known license and exception identifiers from the SPDX license list > 2.4. Parentheses are not currently supported. > > Multiple licenses can be separated with a `/`, although that usage > is deprecated. Instead, use a license expression with AND and OR > operators to get more explicit semantics.
2019-05-09Omit the vendor component in the WASI tripleDan Gohman-1/+1
This renames wasm32-unknown-wasi to wasm32-wasi, omitting the vendor component. This follows aarch64-linux-android, x86_64-fuchsia, and others in omitting the vendor field, which has the advantage of aligning with the [multiarch tuple](https://wiki.debian.org/Multiarch/Tuples), and of being less noisy.
2019-05-09remove unneeded `extern crate`s from build toolsAndy Russell-14/+14
2019-05-08Auto merge of #60626 - matthiaskrgr:submodule_upd, r=oli-obkbors-9/+9
submodules: update clippy from fc96aa03 to 341c96af Fixes clippy toolstate Fixes https://github.com/rust-lang/rust/issues/60623 Changes: ```` rustup https://github.com/rust-lang/rust/pull/60586 Add test for #771. Clean up while_loop tests ```` r? @Manishearth
2019-05-08Auto merge of #60378 - froydnj:apple-target-modifications, r=michaelwoeristerbors-0/+11
conditionally modify darwin targets to macosx targets with versions We need this behavior so that Rust LLVM IR objects match the target triple for Clang LLVM IR objects. This matching then convinces the linker that yes, you really can do cross-language LTO with objects from different compilers. The newly-added tests seem to pass locally on x86_64-unknown-linux-gnu. I haven't done a full test run or tried the new compiler in an cross-language LTO setup yet.
2019-05-08submodules: update clippy from fc96aa03 to 341c96afMatthias Krüger-9/+9
Changes: ```` rustup https://github.com/rust-lang/rust/pull/60586 Add test for #771. Clean up while_loop tests ````
2019-05-07add negative tests for OS X LLVM target changesNathan Froyd-0/+11
2019-05-07Auto merge of #60596 - ehuss:update-cargo, r=alexcrichtonbors-0/+0
Update cargo 12 commits in beb8fcb5248dc2e6aa488af9613216d5ccb31c6a..759b6161a328db1d4863139e90875308ecd25a75 2019-04-30 23:58:00 +0000 to 2019-05-06 20:47:49 +0000 - Small things (rust-lang/cargo#6910) - Fix skipping over invalid registry packages (rust-lang/cargo#6912) - Fixes rust-lang/cargo#6874 (rust-lang/cargo#6905) - doc: Format examples of version to ease reading (rust-lang/cargo#6907) - fix more typos (codespell) (rust-lang/cargo#6903) - Parse less JSON on null builds (rust-lang/cargo#6880) - chore: Update opener to 0.4 (rust-lang/cargo#6902) - Update documentation for auto-discovery. (rust-lang/cargo#6898) - Update some doc links. (rust-lang/cargo#6897) - Default Cargo.toml template provide help for completing the metadata (rust-lang/cargo#6881) - Run 'cargo fmt --all' (rust-lang/cargo#6896) - Refactor command definition (rust-lang/cargo#6894)
2019-05-07Auto merge of #60464 - eddyb:not-overly-specific-pipelining, r=alexcrichtonbors-27/+41
rustc: rename -Z emit-directives to -Z emit-artifact-notifications and simplify the output. This is my take on #60006 / #60419 (see https://github.com/rust-lang/rust/pull/60006#discussion_r275983732). I'm not too attached the "notifications" part, it's pretty much bikeshed material. **EDIT**: for "artifact", @matklad pointed out Cargo already uses it (in https://github.com/rust-lang/rust/pull/60464#issuecomment-488576998) The first two commits are fixes that could be landed independently, especially the `compiletest` one, which removes the need for any of the normalization added in #60006 to land the test. The last commit enables the emission for all outputs, which was my main suggestion for #60006, mostly to show that it's minimal and not really a "scope creep" (as suggested in https://github.com/rust-lang/rust/pull/60006#discussion_r279964081). cc @alexcrichton @nnethercote
2019-05-07compiletest: uniformly normalize paths, so they all work on all platforms.Eduard-Mihai Burtescu-17/+15
2019-05-07rustc: rename -Z emit-directives to -Z emit-artifact-notifications and ↵Eduard-Mihai Burtescu-5/+5
simplify the output.
2019-05-07compiletest: only use `make_exe_name` for tests that end up being executed.Eduard-Mihai Burtescu-5/+21
2019-05-06Update cargoEric Huss-0/+0
2019-05-07Auto merge of #60531 - Centril:sort-features, r=oli-obkbors-4/+4
Enforce sorting of accepted and removed features Fixes https://github.com/rust-lang/rust/issues/60361 with mechanism introduced in https://github.com/rust-lang/rust/pull/60373. r? @oli-obk
2019-05-06set the default edition when pre-parsing a doctestQuietMisdreavus-1/+3
2019-05-06Auto merge of #60436 - Xanewok:update-rls, r=Manishearthbors-0/+0
Update RLS and Cargo Fixes the `test-fail` RLS toolstate caused by #59114. r? @Centril @Manishearth
2019-05-04Auto merge of #60538 - matthiaskrgr:submodule_upd, r=eddybbors-8/+10
submodules: update clippy from 2ed0b3bf to fc96aa03 Changes: ```` Rustup to rustc 1.36.0-nightly (13fde05b1 2019-05-03) Fix link in into_iter_on_array documentation remove function body from "too many args" span check closure arguments before use it format code fix suggestion for search_is_some fix suggestion for search_is_some naively change |&x| to |x| in stderr file cargo fmt useless_let_if_seq handle interior mutability ```` Fixes https://github.com/rust-lang/rust/issues/60534
2019-05-04submodules: update clippy from 2ed0b3bf to fc96aa03Matthias Krüger-8/+10
Changes: ```` Rustup to rustc 1.36.0-nightly (13fde05b1 2019-05-03) Fix link in into_iter_on_array documentation remove function body from "too many args" span check closure arguments before use it format code fix suggestion for search_is_some fix suggestion for search_is_some naively change |&x| to |x| in stderr file cargo fmt useless_let_if_seq handle interior mutability ````
2019-05-04Rename 'no tracking issue START' to fit better with tidy.Mazdak Farrokhzad-4/+4
2019-05-03tidy: Extract `let mut part` out of `parts` block in `version.rs`Alexey Shmalko-7/+5
2019-05-03Migrate tidy to rust 2018 editionAlexey Shmalko-10/+3
2019-05-03Rollup merge of #60373 - rasendubi:lang-features-sort-since, r=CentrilMazdak Farrokhzad-30/+192
Tidy: ensure lang features are sorted by since This is the tidy side of https://github.com/rust-lang/rust/issues/60361. What is left is actually splitting features into groups and sorting by since. This PR also likely to produce a small (a couple of lines) merge conflict with https://github.com/rust-lang/rust/pull/60362. r? @Centril
2019-05-02Make tidy::version::Version copyAlexey Shmalko-4/+4
2019-05-02Make in_feature_group a simple bool flagAlexey Shmalko-7/+6
2019-05-02Rework Version::parse to avoid extra allocationsAlexey Shmalko-10/+20
2019-05-02Make tidy::version::Version a [u32; 3]Alexey Shmalko-12/+28
2019-05-02Address review commentsAlexey Shmalko-28/+29
2019-05-02Ensure language features in group are sorted by sinceAlexey Shmalko-0/+17
2019-05-02Assign group and parse since for FeatureAlexey Shmalko-11/+117
2019-05-02Make find_attr_val a little bit more preciseAlexey Shmalko-4/+17
`find_attr_val(&line, "since")` returns `Some(", issue = ")` when `line` is set to the following line: ``` [unstable(feature = "checked_duration_since", issue = "58402")] ``` Make `find_attr_val` use regex that is a little bit more precise (requires `=` after key name). It still does not handle all cases (e.g., extra leading chars in key name, or escaped quotes in value), but is good enough for now.
2019-05-02Update CargoIgor Matuszewski-0/+0
Align with the version bump in https://github.com/rust-lang/rls/pull/1448
2019-05-02update miriRalf Jung-14/+14
2019-05-01Update clippyManish Goregaokar-8/+8
2019-05-01Update RLSIgor Matuszewski-0/+0
2019-04-30Auto merge of #60262 - michaelwoerister:pgo-preinlining-pass, r=alexcrichtonbors-1/+14
PGO: Add a run-make test that makes sure that PGO profiling data is used by the compiler during optimizations. From the tests comment section: ``` # This test makes sure that PGO profiling data leads to cold functions being # marked as `cold` and hot functions with `inlinehint`. # The test program contains an `if` were actual execution only ever takes the # `else` branch. Accordingly, we expect the function that is never called to # be marked as cold. ``` r? @alexcrichton
2019-04-30Rollup merge of #60399 - Manishearth:clippyup, r=ManishearthMazdak Farrokhzad-12/+8
Update clippy None
2019-04-30Rollup merge of #60362 - Centril:cleanup-declare-features-active, r=oli-obkMazdak Farrokhzad-10/+16
Cleanup 'active' declare_features! with uniform style + sorting. r? @oli-obk (added the FIXME you wanted) cc https://github.com/rust-lang/rust/pull/60354 cc https://github.com/rust-lang/rust/issues/60361
2019-04-29Update clippyManish Goregaokar-12/+8
2019-04-30Auto merge of #60389 - Centril:rollup-nefreyr, r=Centrilbors-5/+5
Rollup of 4 pull requests Successful merges: - #59869 (SGX target: implemented vectored I/O) - #60238 (Update rustfmt to 1.2.2) - #60276 (Cleanup the MIR visitor) - #60380 (Fix line number display in source view) Failed merges: r? @ghost
2019-04-30Rollup merge of #60238 - topecongiro:rustfmt-1.2.2, r=alexcrichtonMazdak Farrokhzad-5/+5
Update rustfmt to 1.2.2
2019-04-30Cleanup 'active' declare_features! with uniform style + sorting.Mazdak Farrokhzad-10/+16
2019-04-29Auto merge of #60006 - nnethercote:json-for-pipelining, r=alexcrichtonbors-10/+17
In JSON output, emit a directive after metadata is generated. To implement pipelining, Cargo needs to know when metadata generation is finished. This is done via a new JSON "directive". Unfortunately, metadata file writing currently occurs very late during compilation, so pipelining won't produce a speed-up. Moving metadata file writing earlier will be a follow-up. r? @alexcrichton
2019-04-30In JSON output, emit a directive after metadata is generated.Nicholas Nethercote-10/+17
To implement pipelining, Cargo needs to know when metadata generation is finished. This commit adds code to do that. Unfortunately, metadata file writing currently occurs very late during compilation, so pipelining won't produce a speed-up. Moving metadata file writing earlier will be a follow-up. The change involves splitting the existing `Emitter::emit` method in two: `Emitter::emit_diagnostic` and `Emitter::emit_directive`. The JSON directives look like this: ``` {"directive":"metadata file written: liba.rmeta"} ``` The functionality is behind the `-Z emit-directives` option, and also requires `--error-format=json`.