about summary refs log tree commit diff
path: root/src/tools
AgeCommit message (Collapse)AuthorLines
2019-08-27Auto merge of #63960 - ehuss:update-cargo, r=alexcrichtonbors-0/+0
Update cargo Update cargo 10 commits in 3f700ec43ce72305eb5315cfc710681f3469d4b4..22f7dd0495cd72ce2082d318d5a9b4dccb9c5b8c 2019-08-19 22:43:12 +0000 to 2019-08-27 16:10:51 +0000 - Update and improve zsh completion (rust-lang/cargo#7296) - Document that `package` can be used in `[patch]` (rust-lang/cargo#7263) - Fix `error:`/`warning:` coloring inconsistency with rustc (rust-lang/cargo#7294) - Tests: Import rustc_plugin from its new location (rust-lang/cargo#7287) - Update README azure badge. (rust-lang/cargo#7293) - Update home dependencies to v0.5 (rust-lang/cargo#7277) - Fix typo (rust-lang/cargo#7279) - Update libgit2 dependencies (rust-lang/cargo#7275) - Fix old lockfile encoding wrt newlines (rust-lang/cargo#7262) - Fix dSYM uplifting when symlink is broken (rust-lang/cargo#7268)
2019-08-27Update cargoEric Huss-0/+0
2019-08-27Auto merge of #63922 - RalfJung:miri, r=nikomatsakisbors-7/+9
update miri Cc @oli-obk Fixes https://github.com/rust-lang/rust/issues/63843
2019-08-27update miriRalf Jung-7/+9
2019-08-26Rollup merge of #63855 - killercup:refactor/feature-gates, r=CentrilMazdak Farrokhzad-7/+15
Refactor feature gates After #63824, this goes a few steps further by - parsing doc comments in the macros to extract descriptions for feature gates, and - introducing a common `Feature` type to replace the tuples used previously to improve readability. The descriptions are not yet used, but I felt like this PR is a useful enough refactoring on its own. r? @Centril
2019-08-25submodules: update clippy from 2bcb6155948e2f8b86db08152a5f54bd5af625e5 to ↵Philipp Hansch-7/+7
05f603e6cec63d0b2681a84d4a64a51bccac1624
2019-08-24submodules: update clippy from cd3df6be to 2bcb6155Matthias Krüger-11/+7
Changes: ```` Refactor some minor things Use more if-chains Refactor 'lint_or_fun_call' Refactor 'check_unwrap_or_default' Refactor 'check_impl_item' Add missing field to LitKind::Str Run update_lints for Unicode lint Re-add false positive check Add raw string regression test for useless_format lint Re-factor useless_format lint Update Unicode lint tests Add two more tests, allow 2 other lints. Fix `temporary_cstring_as_ptr` false negative Add more testcases for redundant_pattern_matching Fix suggestions for redundant_pattern_matching Add note on how to find the latest beta commit Remove feature gate for async_await Update if_chain doc link Requested test cleanup Requested changes Ignore lines starting with '#' run-rustfix for unseparated-prefix-literals Add autofixable suggestion for unseparated integer literal suffices Further text improvements Add image docs: Explain how to update the changelog ````
2019-08-24Fix tidy feature gate error reportingPascal Hertleif-7/+15
Feature gate definitions were split into multiple files in #63824 but tidy kept reporting the hard-coded path. Now, it shows the full path to the correct file.
2019-08-24Auto merge of #63637 - alexcrichton:remove-libtest-step, r=Mark-Simulacrumbors-0/+22
bootstrap: Merge the libtest build step with libstd Since its inception rustbuild has always worked in three stages: one for libstd, one for libtest, and one for rustc. These three stages were architected around crates.io dependencies, where rustc wants to depend on crates.io crates but said crates don't explicitly depend on libstd, requiring a sysroot assembly step in the middle. This same logic was applied for libtest where libtest wants to depend on crates.io crates (`getopts`) but `getopts` didn't say that it depended on std, so it needed `std` built ahead of time. Lots of time has passed since the inception of rustbuild, however, and we've since gotten to the point where even `std` itself is depending on crates.io crates (albeit with some wonky configuration). This commit applies the same logic to the two dependencies that the `test` crate pulls in from crates.io, `getopts` and `unicode-width`. Over the many years since rustbuild's inception `unicode-width` was the only dependency picked up by the `test` crate, so the extra configuration necessary to get crates building in this crate graph is unlikely to be too much of a burden on developers. After this patch it means that there are now only two build phasese of rustbuild, one for libstd and one for rustc. The libtest/libproc_macro build phase is all lumped into one now with `std`. This was originally motivated by rust-lang/cargo#7216 where Cargo was having to deal with synthesizing dependency edges but this commit makes them explicit in this repository.
2019-08-24Auto merge of #63824 - Centril:split-feature_gate, r=oli-obkbors-1/+8
Refactor `feature_gate.rs` into modules & cleanup Split `src/libsyntax/feature_gate.rs` into `src/libsyntax/feature_gate/` with files: - `accepted.rs` (accepted feature gates) - `removed.rs` (...) - `active.rs` (...) - `builtin_attrs.rs` (definition of builtin attributes and their gates as well as gating `cfg` flags) - `check.rs` (post expansion checking of feature gates) - `mod.rs` (just reexports) Additionally, `tidy.rs` is adjusted to respect the new scheme. Also, `builtin_attrs.rs` sees some cleanup, organization, and DSL-ification to reduce repetition. This is probably best read commit-by-commit I think. r? @oli-obk
2019-08-23bootstrap: Merge the libtest build step with libstdAlex Crichton-0/+22
Since its inception rustbuild has always worked in three stages: one for libstd, one for libtest, and one for rustc. These three stages were architected around crates.io dependencies, where rustc wants to depend on crates.io crates but said crates don't explicitly depend on libstd, requiring a sysroot assembly step in the middle. This same logic was applied for libtest where libtest wants to depend on crates.io crates (`getopts`) but `getopts` didn't say that it depended on std, so it needed `std` built ahead of time. Lots of time has passed since the inception of rustbuild, however, and we've since gotten to the point where even `std` itself is depending on crates.io crates (albeit with some wonky configuration). This commit applies the same logic to the two dependencies that the `test` crate pulls in from crates.io, `getopts` and `unicode-width`. Over the many years since rustbuild's inception `unicode-width` was the only dependency picked up by the `test` crate, so the extra configuration necessary to get crates building in this crate graph is unlikely to be too much of a burden on developers. After this patch it means that there are now only two build phasese of rustbuild, one for libstd and one for rustc. The libtest/libproc_macro build phase is all lumped into one now with `std`. This was originally motivated by rust-lang/cargo#7216 where Cargo was having to deal with synthesizing dependency edges but this commit makes them explicit in this repository.
2019-08-23Fix `tidy` fallout due to `feature_gate.rs` refactoring.Mazdak Farrokhzad-1/+8
2019-08-22Auto merge of #63522 - topecongiro:rustfmt-1.4.5, r=Centrilbors-21/+6
Update rustfmt to 1.4.5 This update includes a bug fix that fixes generating invalid code when formatting an impl block with const generics inside a where clause. **Changes** https://github.com/rust-lang/rustfmt/compare/0462008de87d2757e8ef1dc26f2c54dd789a59a8...1de58ce46d64b1164a214dc0b7fb7c400576c3a6
2019-08-22Rollup merge of #63788 - mark-i-m:rustc-guide-toolstate-add, r=ehussMazdak Farrokhzad-1/+1
Add amanjeev to rustc-guide toolstate cc @amanjeev @spastorino r? @ehuss
2019-08-21Rollup merge of #63747 - RalfJung:miri, r=RalfJungMazdak Farrokhzad-7/+7
update Miri Fixes https://github.com/rust-lang/rust/issues/63673 r? @oli-obk
2019-08-21add amanjeevMark Mansi-1/+1
2019-08-21Rollup merge of #63753 - ehuss:bump-toml, r=Mark-SimulacrumMazdak Farrokhzad-1/+1
Bump toml dependency. Just removing an old/duplicated dependency from the workspace.
2019-08-21Rollup merge of #63721 - Mark-Simulacrum:decouple-error-index, r=matthewjasperMazdak Farrokhzad-31/+86
Do not emit JSON dumps of diagnostic codes This decouples the error index generator from libsyntax for the most part (though it still depends on librustdoc for the markdown parsing and generation). Fixes #34588
2019-08-21update MiriRalf Jung-7/+7
2019-08-20Bump toml dependency.Eric Huss-1/+1
Just removing an old/duplicated dependency from the workspace.
2019-08-20Remove serialization of diagnostics to filesMark Rousskov-4/+7
This is no longer used by the index generator and was always an unstable compiler detail, so strip it out. This also leaves in RUSTC_ERROR_METADATA_DST since the stage0 compiler still needs it to be set.
2019-08-20Load error codes via build script instead of JSON parsingMark Rousskov-31/+83
This scans the tree for `error_codes.rs` and loads all of them.
2019-08-20Update cargoflip1995-0/+0
2019-08-20Update Clippyflip1995-8/+10
2019-08-20Update rustfmt to 1.4.5Seiichi Uchida-21/+6
2019-08-17Auto merge of #63491 - Xanewok:update-rls, r=Mark-Simulacrumbors-0/+0
Update RLS This fixes handling default configuration for the `crate_blacklist` RLS configuration. Technically this isn't needed, as the VS Code extension can be configured to accept a predefined blacklist that's equal to the default one but it's best that it also lands so that we don't need to work around that. Without this, manually passing a `null` value as the configuration unfortunately crashes the RLS. This is the last fix related to configuration. cc https://github.com/rust-lang/rust/pull/63472 r? @Mark-Simulacrum
2019-08-16Rollup merge of #63604 - Wind-River:master, r=alexcrichtonMazdak Farrokhzad-3/+3
Some update for vxWorks 1. support crt-static 2. change armv7_wrs_vxworks to armv7_wrs_vxworks_eabihf. 3. change vx-cxx to wr-c++, vx-ar to wr-ar and vx-run to wr-run. 4. code cleanup r? @alexcrichton
2019-08-15submodules: Update miriLzu Tao-9/+7
2019-08-131. support crt-staticBaoshan Pang-3/+3
2. change armv7_wrs_vxworks to armv7_wrs_vxworks_eabihf. 3. use wr-** instead of vx-** 4. set PIE to false 5. code cleanup
2019-08-12Update RLSIgor Matuszewski-0/+0
This fixes handling default configuration for the `crate_blacklist` RLS configuration. Technically this isn't needed, as the VS Code extension can be configured to accept a predefined blacklist that's equal to the default one but it's best that it also lands so that we don't need to work around that. cc https://github.com/rust-lang/rust/pull/63472
2019-08-11Auto merge of #63472 - Xanewok:update-rls, r=Mark-Simulacrumbors-0/+0
Update RLS This update includes the ability to warn on deprecated config keys. It's important to be able to warn the user whenever they're using an old configuration rather than giving them a cryptic "unknown configuration error" cc https://github.com/rust-lang/rls-vscode/issues/639 Since we removed a config value in the current nightly, it'd be very good if this change can make also make it before cutting the next release.
2019-08-11Rollup merge of #63453 - Mark-Simulacrum:rustdoc-clean-2, r=GuillaumeGomezMark Rousskov-6/+7
rustdoc: general cleanup Almost all commits stand alone; but all commits can be reviewed individually.
2019-08-11Rollup merge of #63346 - RalfJung:zeroed-lint, r=eddybMark Rousskov-8/+8
Lint on some incorrect uses of mem::zeroed / mem::uninitialized Cc https://github.com/rust-lang/rust/issues/62825 and https://internals.rust-lang.org/t/make-mem-uninitialized-and-mem-zeroed-panic-for-some-types-where-0-is-a-niche/10605 This does not yet handle `NonNull`/`NonZero*`, but it is a start. I also improved some doc issues I hit on the way, and added a useful helper to `TyS`. EDIT: I added the relnotes label mostly as a proposal -- I think this is worth mentioning, but leave the decision up to the release team.
2019-08-11Update RLSIgor Matuszewski-0/+0
This update includes the ability to warn on deprecated config keys. It's important to be able to warn the user whenever they're using an old configuration rather than giving them a cryptic "unknown configuration error" cc https://github.com/rust-lang/rls-vscode/issues/639 Since we removed a config value in the current nightly, it'd be very good if this change can make also make it before cutting the next release.
2019-08-11Drop RefCell from IdMap in markdown renderingMark Rousskov-1/+1
2019-08-11Remove fmt::Display impls on Markdown structsMark Rousskov-1/+1
These impls prevent ergonomic use of the config (e.g., forcing us to use RefCell) despite all usecases for these structs only using their Display impls once.
2019-08-11Remove thread-local for playground configMark Rousskov-5/+6
2019-08-11update clippyRalf Jung-8/+8
2019-08-11Auto merge of #63413 - RalfJung:miri, r=oli-obkbors-9/+8
update Miri With https://github.com/rust-lang/rust/pull/63404 landed, we need https://github.com/rust-lang/miri/pull/898 to avoid failures in https://github.com/RalfJung/miri-test-libstd. r? @oli-obk
2019-08-10Update cargoVadim Petrochenkov-0/+0
2019-08-09update MiriRalf Jung-9/+8
2019-08-09Check links on all platforms when running locallyMateusz Mikuła-10/+10
2019-08-09Rollup merge of #63162 - RalfJung:miri-xargo, r=alexcrichtonMazdak Farrokhzad-8/+9
Miri tests: use xargo to build separate libstd This uses `cargo miri setup` to prepare the libstd that is used for testing Miri, instead of adjusting the entire bootstrap process to make sure the libstd that already gets built is fit for Miri. The issue with our current approach is that with `test-miri = true`, libstd and the test suite get built with `--cfg miri`, which e.g. means hashbrown uses no SIMD, and not all things are tested. Such global side-effects seem like footguns waiting to go off. On the other hand, the new approach means we install xargo as a side-effect of doing `./x.py test src/tools/miri`, which might be surprising, and we also both have to build xargo and another libstd which costs some extra time. Not sure if the tools builders have enough time budget for that. Maybe there is a way to cache xargo? We have to first first land https://github.com/rust-lang/miri/pull/870 in Miri and then update this PR to include that change (also to get CI to test Miri before bors), but I wanted to get the review started here. Cc @oli-obk (for Miri) @alexcrichton (for CI) @Mark-Simulacrum (for bootstrap) Fixes https://github.com/rust-lang/rust/issues/61833, fixes https://github.com/rust-lang/rust/issues/63219
2019-08-08update miriRalf Jung-8/+9
2019-08-08Rollup merge of #63316 - topecongiro:rustfmt-1.4.4, r=Mark-SimulacrumMazdak Farrokhzad-18/+18
Update rustfmt to 1.4.4 The update includes bug fixes.
2019-08-08Auto merge of #63282 - Xanewok:update-rls, r=nikomatsakisbors-0/+0
Update RLS Most importantly this includes: * Collect file -> edition mapping after AST expansion ([#1513](https://github.com/rust-lang/rls/pull/1513)) (enabled by https://github.com/rust-lang/rust/pull/62679) * Fix rustfmt during builds by reading edition from manifest ([#1533](https://github.com/rust-lang/rls/pull/1533)) Which fixes the annoying problem where users couldn't format via RLS while `cargo fmt` worked. The beta cut-off is drawing near and I'd like to make sure this lands before then.
2019-08-07Update cargoEric Huss-0/+0
2019-08-07Auto merge of #60547 - redox-os:redox-unix, r=alexcrichtonbors-0/+1
redox: convert to target_family unix This is the second step to supporting rust-lang/rust#60139. In order to have a smooth transition, there will need to be a change made in liblibc at the same time, switching Redox over to the unix target family. See https://github.com/rust-lang/libc/pull/1332
2019-08-07submodules: Update clippyLzu Tao-13/+9
2019-08-06redox: convert to target_family unixJeremy Soller-0/+1