about summary refs log tree commit diff
path: root/src/tools
AgeCommit message (Collapse)AuthorLines
2020-05-14Auto merge of #72058 - RalfJung:no-dist-lldb, r=Mark-Simulacrumbors-18/+0
bootstrap: remove lldb dist packaging The lldb-preview rustup package is missing on every single target, and has never been shipped beyond x86_64-apple-darwin. It was removed in #62592 which landed around a year ago, and there's not been demand that we re-enable it since, so we're now removing support entirely to cleanup the code a bit. The hope is that this will also kill the useless "lldb-preview" row on https://rust-lang.github.io/rustup-components-history/.
2020-05-13Auto merge of #72118 - flip1995:clippyup, r=oli-obkbors-257/+1574
Update Clippy to 43a1777 Updates Clippy to https://github.com/rust-lang/rust-clippy/commit/43a1777b89cf6791f9e20878b4e5e3ae907867a5 We should establish a process on how often and when to update Clippy. (After X feature PRs? Once per week? Only on bug fixes and in the release week? ...?) r? @oli-obk
2020-05-12Auto merge of #72091 - RalfJung:miri, r=RalfJungbors-7/+7
update miri Fixes https://github.com/rust-lang/rust/issues/72037 Cc @rust-lang/miri r? @ghost
2020-05-11Merge commit '43a1777b89cf6791f9e20878b4e5e3ae907867a5' into clippyupflip1995-257/+1574
2020-05-11Auto merge of #72089 - Mark-Simulacrum:error-is-really-an-error, r=pietroalbinibors-1/+4
Fail if I/O error occurs during testing First known case of this is in https://github.com/rust-lang/rust/pull/72053#issuecomment-626364402 but may have happened before then. r? @pietroalbini
2020-05-11update miri some moreRalf Jung-11/+7
2020-05-10update miriRalf Jung-7/+11
2020-05-10Fail if I/O error occurs during testingMark Rousskov-1/+4
2020-05-10remove lldb package from bootstrap, config and build-manifestRalf Jung-18/+0
it's not been built since a long time ago
2020-05-09Auto merge of #72041 - RalfJung:rollup-xivrvy2, r=RalfJungbors-31/+42
Rollup of 5 pull requests Successful merges: - #69406 (upgrade chalk and use chalk-solve/chalk-ir/chalk-rust-ir) - #71185 (Move tests from `test/run-fail` to UI) - #71234 (rustllvm: Use .init_array rather than .ctors) - #71508 (Simplify the `tcx.alloc_map` API) - #71555 (Remove ast::{Ident, Name} reexports.) Failed merges: r? @ghost
2020-05-09Rollup merge of #71555 - cjgillot:nameless, r=matthewjasperRalf Jung-31/+31
Remove ast::{Ident, Name} reexports. The reexport of `Symbol` into `Name` confused me.
2020-05-09Rollup merge of #69406 - jackh726:chalk-upgrade, r=nikomatsakisRalf Jung-0/+11
upgrade chalk and use chalk-solve/chalk-ir/chalk-rust-ir Reintegrate chalk into rustc. r? @nikomatsakis cc. @rust-lang/wg-traits
2020-05-09submodules: update cargo from f534844c2 to cb06cb269Matthias Krüger-0/+0
Changes: ```` more clippy fixes Document that bench is unstable in the man page. Update assertions in LTO calculations Updated comments in resolve.rs to reflect actual data strcture used. Try to remove secrets from http.debug. Revert always computing filename Metadata. clean -p: call `get_many` once. Implement new `clean -p` using globs. Rework how Cargo computes the rustc file outputs. Add CrateType to replace LibKind. ````
2020-05-08Fix clippy.Camille GILLOT-31/+31
2020-05-08update miriRalf Jung-7/+7
2020-05-07Fix nit and cargo.lockJack Huey-0/+7
2020-05-07Reintegrate chalk using chalk-solveJack Huey-0/+4
2020-05-07Auto merge of #71925 - ehuss:update-cargo, r=ehussbors-0/+0
Update cargo 7 commits in 258c89644c4587273a3ed3ee9522d2640facba43..f534844c25cacc5e004404cea835ac85e35ca3fd 2020-04-30 21:48:21 +0000 to 2020-05-06 14:39:10 +0000 - Avoid testing git-specific error messages (rust-lang/cargo#8212) - features: allow activated_features_unverified to communicate not-present (rust-lang/cargo#8194) - Don't force rustc to do codegen for LTO builds (rust-lang/cargo#8192) - Hint git-fetch-with-cli on git errors (rust-lang/cargo#8166) - ¬∃x. ¬y => ∀x. y (rust-lang/cargo#8205) - clippy fixes (rust-lang/cargo#8189) - Rename bitcode-in-rlib flag to embed-bitcode (rust-lang/cargo#8204)
2020-05-07Auto merge of #55617 - oli-obk:stacker, r=nagisa,oli-obkbors-0/+2
Prevent compiler stack overflow for deeply recursive code I was unable to write a test that 1. runs in under 1s 2. overflows on my machine without this patch The following reproduces the issue, but I don't think it's sensible to include a test that takes 30s to compile. We can now easily squash newly appearing overflows by the strategic insertion of calls to `ensure_sufficient_stack`. ```rust // compile-pass #![recursion_limit="1000000"] macro_rules! chain { (EE $e:expr) => {$e.sin()}; (RECURSE $i:ident $e:expr) => {chain!($i chain!($i chain!($i chain!($i $e))))}; (Z $e:expr) => {chain!(RECURSE EE $e)}; (Y $e:expr) => {chain!(RECURSE Z $e)}; (X $e:expr) => {chain!(RECURSE Y $e)}; (A $e:expr) => {chain!(RECURSE X $e)}; (B $e:expr) => {chain!(RECURSE A $e)}; (C $e:expr) => {chain!(RECURSE B $e)}; // causes overflow on x86_64 linux // less than 1 second until overflow on test machine // after overflow has been fixed, takes 30s to compile :/ (D $e:expr) => {chain!(RECURSE C $e)}; (E $e:expr) => {chain!(RECURSE D $e)}; (F $e:expr) => {chain!(RECURSE E $e)}; // more than 10 seconds (G $e:expr) => {chain!(RECURSE F $e)}; (H $e:expr) => {chain!(RECURSE G $e)}; (I $e:expr) => {chain!(RECURSE H $e)}; (J $e:expr) => {chain!(RECURSE I $e)}; (K $e:expr) => {chain!(RECURSE J $e)}; (L $e:expr) => {chain!(RECURSE L $e)}; } fn main() { let x = chain!(D 42.0_f32); } ``` fixes #55471 fixes #41884 fixes #40161 fixes #34844 fixes #32594 cc @alexcrichton @rust-lang/compiler I looked at all code that checks the recursion limit and inserted stack growth calls where appropriate.
2020-05-06Update cargoEric Huss-0/+0
2020-05-05Auto merge of #71875 - Xanewok:update-rls, r=tmandrybors-2/+6
Update RLS In addition to fixing the toolstate, this also changes the default compilation model to the out-of-process one, which should hopefully target considerable memory usage for long-running instances of the RLS. Fixes #71753 r? @ghost
2020-05-05Unify winapi features for toolsTyler Mandry-1/+2
2020-05-05Unify some syn 1.0 et al. features for toolsIgor Matuszewski-1/+4
2020-05-05Update RLSIgor Matuszewski-0/+0
In addition to fixing the toolstate, this also changes the default compilation model to the out-of-process one, which should hopefully target considerable memory usage for long-running instances of the RLS.
2020-05-05Rollup merge of #71830 - oli-obk:subrepo_funness, r=Mark-SimulacrumDylan DPC-5/+0
Remove clippy from some leftover lists of "possibly failing" tools https://github.com/rust-lang/rust/pull/70655 successfully made clippy get built and tested on CI on every merge, but the lack of emitted toolstate info caused the toolstate to get updated to test-fail. We should remove clippy entirely from toolstate, as it now is always test-pass. The changes made in this PR reflect what we do for `rustdoc`, which is our preexisting tool that is gated on CI. r? @Mark-Simulacrum
2020-05-03Update clippy lintDylan MacKenzie-1/+1
2020-05-03Remove clippy from some leftover lists of "possibly failing" toolsOliver Scherer-5/+0
2020-05-02Auto merge of #71794 - RalfJung:miri, r=RalfJungbors-7/+7
update Miri This contains the concurrency support by @vakaras :) Fixes https://github.com/rust-lang/rust/issues/71729 r? @ghost Cc @rust-lang/miri
2020-05-02Add `psm` to the crate whitelistOliver Scherer-0/+2
2020-05-02update MiriRalf Jung-7/+7
2020-05-02Add 'src/tools/clippy/' from commit 'd2708873ef711ec8ab45df1e984ecf24a96cd369'Oliver Scherer-0/+114475
git-subtree-dir: src/tools/clippy git-subtree-mainline: 06c44816c1532e5ff08ad072f581fc068eb60e2e git-subtree-split: d2708873ef711ec8ab45df1e984ecf24a96cd369
2020-05-02Delete the clippy submoduleOliver Scherer-11/+0
2020-05-01submodules: update cargo from 90931d9b3 to 258c89644Matthias Krüger-0/+0
Changes: ```` Remove unnecessary loop in `maybe_spurious` Fix error with git repo discovery and symlinks. Allow failure when setting file mtime. Support multiple `--target` flags on the CLI build-std: Don't treat std like a "local" package. Allow `cargo package --list` even for things that don't package. ````
2020-04-30Auto merge of #71687 - RalfJung:miri, r=RalfJungbors-10/+7
update Miri Fixes https://github.com/rust-lang/rust/issues/71632 r? @ghost Cc @rust-lang/miri
2020-04-29update MiriRalf Jung-10/+7
2020-04-29Update Clippyflip1995-7/+7
2020-04-28Auto merge of #71642 - ehuss:update-cargo, r=ehussbors-0/+0
Update cargo 11 commits in 8751eb3010d4cdb5329b5a6bd2b6d765c95b0dca..90931d9b31e8b854522fed00916504a3ac6d8619 2020-04-21 18:04:35 +0000 to 2020-04-28 01:56:59 +0000 - Use associated constants directly on primitive types instead of modules (rust-lang/cargo#8077) - Clear `RUSTDOCFLAGS` before running tests (rust-lang/cargo#8168) - Fix warning for `resolve` mismatch in workspace. (rust-lang/cargo#8169) - Fix flaky linking_interrupted test. (rust-lang/cargo#8162) - Fixed some unnecessary borrows and clones. (rust-lang/cargo#8146) - Added warning when using restricted names in Windows. (rust-lang/cargo#8136) - Add changelog about dylib uplift. (rust-lang/cargo#8161) - Mention that cargo_metadata can parse json messages (rust-lang/cargo#8158) - Re-enable rustc-info-cache test again (rust-lang/cargo#8155) - Updates to path source walking. (rust-lang/cargo#8095) - Bump to 0.46.0, update changelog (rust-lang/cargo#8153)
2020-04-28Rollup merge of #71456 - mzohreva:mz/sgx-no-dylib, r=nikomatsakisDylan DPC-0/+1
Use lib crate type for SGX in `fn build_auxiliary` since SGX does not support `dylib` cc @Goirad
2020-04-28Update cargoEric Huss-0/+0
2020-04-28Auto merge of #71606 - Xanewok:update-rls, r=Xanewokbors-0/+0
Update RLS to unbreak toolstate Breakage caused by https://github.com/rust-lang/rust/pull/71263. r? @ghost
2020-04-27Rollup merge of #71605 - GuillaumeGomez:remove-e0750-from-whitelist, r=Dylan-DPCDylan DPC-1/+1
No need to whitelist E0750 anymore Since #71304 has been fixed, no need to whitelist it anymore. r? @Dylan-DPC
2020-04-27Rollup merge of #71578 - ryzokuken:linkchecker, r=Dylan-DPCDylan DPC-1/+1
linkchecker: fix typo in main.rs Came across this while reading the file.
2020-04-27Update RLS to unbreak toolstateIgor Matuszewski-0/+0
Breakage caused by https://github.com/rust-lang/rust/pull/71263.
2020-04-27No need to whitelist E0750 anymoreGuillaume Gomez-1/+1
2020-04-26submodules: update clippy from 891e1a85 to b7c802b5Matthias Krüger-10/+8
Changes: ```` rustup to https://github.com/rust-lang/rust/pull/70043 map_clone: avoid suggesting `copied()` for &mut fix redundant_pattern_matching lint Add tests for #1654 Don't trigger while_let_on_iterator when the iterator is recreated every iteration Update issue_2356.stderr reference file Update while_let_on_iterator tests Fix while_let_on_iterator suggestion and make it MachineApplicable Add lifetime test case for `new_ret_no_self` rustup https://github.com/rust-lang/rust/pull/71215/ Downgrade match_bool to pedantic Run fetch before testing if master contains beta The beta branch update should not require a force push Add a note to the beta sections of release.md Remove apt-get upgrade again Always use the deploy script and templates of the master branch README: fix lit count line clippy_dev: make it fatal when the regex for updating lint count does not match `predecessors_for` will be removed soon Rustup "Remove `BodyAndCache`" Only run (late) internal lints, when they are warn/deny/forbid Only run cargo lints, when they are warn/deny/forbid span_lint_and_note now takes an Option<Span> for the note_span instead of just a span Make lint also capture blocks and closures, adjust language to mention other mutex types don't test the code in the lint docs Switch to matching against full paths instead of just the last element of the path Lint for holding locks across await points Also mention `--fix` for nightly users fix crash on issue-69020-assoc-const-arith-overflow.rs Address review comments remark fixes Update CHANGELOG.md for Rust 1.43 and 1.44 update stderr file util/fetch_prs_between.sh: Add Markdown formatted Link factor ifs into function, add differing mutex test Update the changelog update documentation Apply suggestions from PR review update span_lint_and_help call to six args test for mutex eq, add another test case use if chain cargo dev fmt fix map import to rustc_middle dev update_lints fix internal clippy warnings change visitor name to OppVisitor use Visitor api to find Mutex::lock calls add note about update-all-refs script, revert redundant pat to master move closures to seperate fns, remove known problems use span_lint_and_help, cargo dev fmt creating suggestion progress work on suggestion for auto fix Implement unsafe_derive_deserialize lint Update empty_enum.stderr Formatting and naming Formatting and naming Cleanup: `node_id` -> `hir_id` Fix issue #2907. Don't trigger toplevel_ref_arg for `for` loops Cleanup: future_not_send: use `return_ty` method Remove badge FIXME from Cargo.toml Change note_span argument for span_lint_and_note. Add an Option<Span> argument to span_lint_and_help. Fixes internal lint warning in code base. Implement collapsible_span_lint_calls lint. ```` Fixes #71453
2020-04-26linkchecker: fix typo in main.rsUjjwal Sharma-1/+1
2020-04-25Auto merge of #71439 - Mark-Simulacrum:stage0-next, r=jonas-schievinkbors-1/+1
Bump bootstrap compiler This bumps the bootstrap compiler and the rustfmt that x.py fmt uses.
2020-04-25Bump bootstrap compilerMark Rousskov-1/+1
2020-04-24Rollup merge of #71428 - tromey:gdb-10-parsing, r=tromeyDylan DPC-5/+21
Let compiletest recognize gdb 10.x git gdb has moved to version 10. My build prints this as its --version: GNU gdb (GDB) 10.0.50.20200420-git Unfortunately this conflicts with this comment in compiletest: // We limit major to 1 digit, otherwise, on openSUSE, we parse the openSUSE version This patch changes the version parsing to follow the GNU coding standard, which accounts for both the openSUSE case as well as handling gdb 10. My debuginfo test run now says: NOTE: compiletest thinks it is using GDB with native rust support NOTE: compiletest thinks it is using GDB version 10000050 ... where previously it failed to find that gdb 10 had rust support.
2020-04-23Fix ui test blessing when a test has an empty stderr file after having had ↵Oliver Scherer-1/+5
content there before the current changes