about summary refs log tree commit diff
path: root/src/tools
AgeCommit message (Collapse)AuthorLines
2019-06-19Rollup merge of #61861 - topecongiro:rustfmt-1.3.0, r=topecongiroMazdak Farrokhzad-5/+21
Update rustfmt and rls This PR bumps the version of rustfmt to 1.3.0.
2019-06-19Update rustfmt and rlstopecongiro-5/+21
Update rustfmt to 1.3.0.
2019-06-18create an issue for miri even in status test-failRalf Jung-8/+17
2019-06-18Auto merge of #61932 - matthiaskrgr:submodule_upd, r=oli-obkbors-9/+7
submodules: update clippy from be5d17fe to 868f168c Changes: ```` rustup https://github.com/rust-lang/rust/pull/61836/ fix suggestion for floating points inequality ```` r? @oli-obk
2019-06-18submodules: update clippy from be5d17fe to 868f168cMatthias Krüger-9/+7
Changes: ```` rustup https://github.com/rust-lang/rust/pull/61836/ fix suggestion for floating points inequality ````
2019-06-18update miriRalf Jung-6/+18
2019-06-17Add `syn` to workspace hack.Eric Huss-2/+3
Cargo's syn now has the `full` feature, so add it here to keep it in sync.
2019-06-17Update cargoEric Huss-0/+0
2019-06-16submodules: update clippy from 7b2a7a22 to be5d17feMatthias Krüger-8/+10
Changes: ```` Fix wrong lifetime of TyCtxt Use replace_region_in_file for creating the lint list Restructure rename tests Register rename to the LintStore. Rename REDUNDANT_STATIC_LIFETIME to REDUNDANT_STATIC_LIFETIMES. Remove pub from RedundantStaticLifetime.visit_type function. Rename const_static_lifetime to redundant_static_lifetime. Merge StaticConst and StaticStatic lints into StaticConst. Use RedundantStaticLifetime in StaticStatic. Move type-checking logic in StaticConst to RedundantStaticLifetime. Add lint for statics with explicit static lifetime. minor fix make it pass dogfood run rustfmt fix padding and put clippy someplaces show default lint levels group printing prelim arg parse move Lint static def into its own module switch to sorted usable lints Update clippy_dev/src/main.rs initial commit for help improvements on clippy-driver ````
2019-06-16compiletest: Move pass mode update into a separate functionVadim Petrochenkov-32/+36
2019-06-16compiletest: Remove `skip-codegen`Vadim Petrochenkov-5/+1
2019-06-16compiletest: Validate pass modes harderVadim Petrochenkov-7/+34
2019-06-16compiletest: Introduce `// {check,build,run}-pass` pass modesVadim Petrochenkov-48/+31
2019-06-14update miriRalf Jung-18/+6
2019-06-13Auto merge of #61772 - alexcrichton:pr-and-master-builds, r=pietroalbinibors-8/+15
ci: Enable toolstate tracking on Azure Currently just run it through its paces but don't actually push to official locations. Instead let's just push to a separate fork (mine) as well as open issues in a separate fork (mine). Make sure that people aren't pinged for these issues as well! This should hopefully ensure that everything is working on Azure and give us a chance to work through any issues that come up. Fixes https://github.com/rust-lang/rust/issues/61790 Fixes https://github.com/rust-lang/rust/issues/61371
2019-06-13ci: Enable toolstate tracking on AzureAlex Crichton-8/+15
Currently just run it through its paces but don't actually push to official locations. Instead let's just push to a separate fork (mine) as well as open issues in a separate fork (mine). Make sure that people aren't pinged for these issues as well! This should hopefully ensure that everything is working on Azure and give us a chance to work through any issues that come up.
2019-06-13Rollup merge of #61766 - matthiaskrgr:submodule_upd, r=oli-obkMazdak Farrokhzad-8/+8
submodules: update clippy from c0dbd34b to bd33a97c Changes: ```` Fix implicit_return docs rustup https://github.com/rust-lang/rust/pull/61758/files Remove wrong lifetime from LintContext Workaround for rust-lang/rustfmt#3615 Fixing eta with respect to lazy evaluation. ```` r? @oli-obk
2019-06-13update miriRalf Jung-14/+14
2019-06-13submodules: update clippy from c0dbd34b to 7b2a7a22Matthias Krüger-8/+8
Changes: ```` Fix wrong lifetime of TyCtxt travis: Wait at most 30 minutes for base test Typos and minor grammar corrections Adds lint for integer division redundant_closure_for_method_calls fixes: lint does not trigger when there is a difference in mutability lint does not trigger when the method belongs to a trait which is not implemebted directly (Deref) Fix implicit_return docs rustup https://github.com/rust-lang/rust/pull/61758/files Remove wrong lifetime from LintContext Workaround for rust-lang/rustfmt#3615 Fixing eta with respect to lazy evaluation. ````
2019-06-13Auto merge of #61597 - lnicola:bump-rand, r=alexcrichtonbors-0/+2
Bump dirs, rand and redox_users Part of #57724.
2019-06-12Add an alias for x86_64-sun-solaris target tupleLzu Tao-0/+1
2019-06-12Bump some of the crates using randLaurențiu Nicola-0/+2
2019-06-10Auto merge of #61694 - Xanewok:update-rls, r=kennytmbors-0/+0
Update RLS This includes https://github.com/rust-lang/rls/pull/1482 which should finally fix the spurious tests RLS in Rust CI (test-pass -> test-fail). r? @oli-obk cc @ehuss
2019-06-09submodules: update clippy from 71be6f62 to c0dbd34bMatthias Krüger-7/+7
Changes: ```` travis: disable rls integration test. rustup https://github.com/rust-lang/rust/pull/61669/ Add OUTER_EXPN_INFO lint ````
2019-06-09Update RLSIgor Matuszewski-0/+0
This includes https://github.com/rust-lang/rls/pull/1482 which should finally fix the spurious tests in Rust CI (test-pass -> test-fail).
2019-06-08Update RLSIgor Matuszewski-0/+0
2019-06-06Rollup merge of #61582 - matthiaskrgr:submodule_upd, r=oli-obkMazdak Farrokhzad-11/+7
submodules: update clippy from 20da8f45 to 71be6f62 Changes: ```` rustup https://github.com/rust-lang/rust/pull/57428/ Remove `to_string()`s from CompilerLintFunctions Fix comment grammar Fix .map(..).unwrap_or_else(..) bad suggestion add suggestions for print/write with newline lint ```` Fixes https://github.com/rust-lang/rust/issues/61578 r? @oli-obk
2019-06-06submodules: update clippy from 20da8f45 to 71be6f62Matthias Krüger-11/+7
Changes: ```` rustup https://github.com/rust-lang/rust/pull/57428/ Remove `to_string()`s from CompilerLintFunctions Fix comment grammar Fix .map(..).unwrap_or_else(..) bad suggestion add suggestions for print/write with newline lint ````
2019-06-05rustbuild: Include `rustfmt` in deduplicated dependenciesAlex Crichton-1/+8
Currently `rustfmt` is excluded from the "don't build dependencies twice" check but it's currently building dependencies twice! Namely big dependencies like `rustc-ap-syntax` are built once for rustfmt and once for the RLS. This commit includes `rustfmt` in these checks and then fixes the resulting feature mismatches for winapi.
2019-06-04Add new diagnostic writer using annotate-snippet libraryPhilipp Hansch-0/+2
This adds a new diagnostic writer `AnnotateRsEmitterWriter` that uses the [`annotate-snippet`][as] library to print out the human readable diagnostics. The goal is to eventually switch over to using the library instead of maintaining our own diagnostics output. This commit does *not* add all the required features to the new diagnostics writer. It is only meant as a starting point so that other people can contribute as well. [as]: https://github.com/rust-lang/annotate-snippets-rs
2019-06-04Auto merge of #61510 - Centril:rollup-bvi95y2, r=Centrilbors-3/+5
Rollup of 13 pull requests Successful merges: - #61135 (Fix documentation of `Rc::make_mut` regarding `rc::Weak`.) - #61404 (miri unsizing: fix projecting into a field of an operand) - #61409 (Fix an ICE with a const argument in a trait) - #61413 (Re-implement async fn drop order lowering ) - #61419 (Add an unusual-conversion example to to_uppercase) - #61420 (Succinctify splice docs) - #61444 (Suggest using `as_ref` on `*const T`) - #61446 (On TerminatorKind::DropAndReplace still handle unused_mut correctly) - #61485 (azure: retry s3 upload if it fails) - #61489 (ci: Reenable step timings on AppVeyor) - #61496 (Do not panic in tidy on unbalanced parentheses in cfg's) - #61497 (Treat 0 as special value for codegen-units-std) - #61499 (Add regression test for existential type ICE #53457) Failed merges: r? @ghost
2019-06-03Update clippyManish Goregaokar-8/+10
2019-06-03Do not panic in tidy on unbalanced parentheses in cfg'sMark Rousskov-3/+5
2019-06-02update miriRalf Jung-5/+19
2019-06-02Auto merge of #61276 - eddyb:kill-res-upvar, r=petrochenkovbors-0/+1
rustc: remove Res::Upvar. By keeping track of the current "`body_owner`" (the `DefId` of the current fn/closure/const/etc.) in several passes, `Res::Upvar` and `hir::Upvar` don't need to contain contextual information about the closure. By leveraging [`indexmap`](https://docs.rs/indexmap), the list of upvars for a given closure can now also be queried, to check whether a local variable is a closure capture, and so `Res::Upvar` can be merged with `Res::Local`. And finally, the `tcx.upvars(...)` query now collects upvars from HIR, without relying on `rustc_resolve`. r? @petrochenkov cc @varkor @davidtwco
2019-06-01Update clippyManish Goregaokar-10/+8
2019-06-01rustc: use indexmap instead of a plain vector for upvars.Eduard-Mihai Burtescu-0/+1
2019-05-30submodules: update clippy from fb33fad0 to d2f51228Matthias Krüger-8/+10
Changes: ```` Rustup to https://github.com/rust-lang/rust/pull/61203 rustup https://github.com/rust-lang/rust/pull/60928 rustup https://github.com/rust-lang/rust/pull/61164 (which is included in https://github.com/rust-lang/rust/pull/61274) ````
2019-05-28Update clippy submoduleOliver Scherer-7/+9
2019-05-26Update clippy submoduleOliver Scherer-10/+8
2019-05-25std: Depend on `backtrace` crate from crates.ioAlex Crichton-0/+3
This commit removes all in-tree support for generating backtraces in favor of depending on the `backtrace` crate on crates.io. This resolves a very longstanding piece of duplication where the standard library has long contained the ability to generate a backtrace on panics, but the code was later extracted and duplicated on crates.io with the `backtrace` crate. Since that fork each implementation has seen various improvements one way or another, but typically `backtrace`-the-crate has lagged behind libstd in one way or another. The goal here is to remove this duplication of a fairly critical piece of code and ensure that there's only one source of truth for generating backtraces between the standard library and the crate on crates.io. Recently I've been working to bring the `backtrace` crate on crates.io up to speed with the support in the standard library which includes: * Support for `StackWalkEx` on MSVC to recover inline frames with debuginfo. * Using `libbacktrace` by default on MinGW targets. * Supporting `libbacktrace` on OSX as an option. * Ensuring all the requisite support in `backtrace`-the-crate compiles with `#![no_std]`. * Updating the `libbacktrace` implementation in `backtrace`-the-crate to initialize the global state with the correct filename where necessary. After reviewing the code in libstd the `backtrace` crate should be at exact feature parity with libstd today. The backtraces generated should have the same symbols and same number of frames in general, and there's not known divergence from libstd currently. Note that one major difference between libstd's backtrace support and the `backtrace` crate is that on OSX the crates.io crate enables the `coresymbolication` feature by default. This feature, however, uses private internal APIs that aren't published for OSX. While they provide more accurate backtraces this isn't appropriate for libstd distributed as a binary, so libstd's dependency on the `backtrace` crate explicitly disables this feature and forces OSX to use `libbacktrace` as a symbolication strategy. The long-term goal of this refactoring is to eventually move us towards a world where we can drop `libbacktrace` entirely and simply use Gimli and the surrounding crates for backtrace support. That's still aways off but hopefully will much more easily enabled by having the source of truth for backtraces live in crates.io! Procedurally if we go forward with this I'd like to transfer the `backtrace-rs` crate to the rust-lang GitHub organization as well, but I figured I'd hold off on that until we get closer to merging.
2019-05-25Rollup merge of #61096 - ehuss:tidy-license-short-circuit, r=CentrilMazdak Farrokhzad-1/+1
tidy: don't short-circuit on license error If there is more than one license error, tidy would only print the first error. This changes it so that all license errors are printed.
2019-05-25Rollup merge of #61095 - ehuss:update-cargo, r=alexcrichtonMazdak Farrokhzad-0/+3
Update cargo Update cargo 14 commits in c4fcfb725b4be00c72eb9cf30c7d8b095577c280..545f354259be4e9745ea00a524c0e4c51df01aa6 2019-05-15 19:48:47 +0000 to 2019-05-23 17:45:30 +0000 - Bump to 0.38.0 (rust-lang/cargo#6979) - cargo package: detect new empty directories (rust-lang/cargo#6973) - Add message caching. (rust-lang/cargo#6933) - Fix typo (rust-lang/cargo#6974) - Set `Finished` line correctly for debug=0. (rust-lang/cargo#6971) - Clippy fixes (rust-lang/cargo#6970) - Remove rustdoc `can_add_color_process`. (rust-lang/cargo#6968) - Document new `doctest` field. (rust-lang/cargo#6965) - Update some man pages that missed --offline. (rust-lang/cargo#6964) - add public & private prop tests. (rust-lang/cargo#6962) - zsh completion: Pull list of commands from cargo --list (rust-lang/cargo#6956) - Change docs "inequality" for semver requirement. (rust-lang/cargo#6963) - Update im-rc requirement from 12.1.0 to 13.0.0 (rust-lang/cargo#6959) - Add `doctest` field into metadata (rust-lang/cargo#6953)
2019-05-24Auto merge of #60777 - pietroalbini:azure-pipelines, r=alexcrichtonbors-1/+1
Add Azure Pipelines configuration Huge thanks to @johnterickson and @willsmythe for writing the initial config! :heart: I applied some changes to the initial config and disabled most of the builders since we're not going to run all of them during the initial step for the evaluation. [More details about our plans for the Azure Pipelines evaluation.](https://internals.rust-lang.org/t/update-on-the-ci-investigation/10056) r? @alexcrichton @kennytm cc @rust-lang/infra @ethomson @rylev
2019-05-23Auto merge of #60970 - MaulingMonkey:pr-compiletest-cdb-support, r=alexcrichtonbors-24/+186
Add basic CDB support to debuginfo compiletest s, to help catch `*.natvis` regressions, like those fixed in #60687. First draft, feedback welcome. Several Microsoft debuggers (VS, VS Code, WinDbg, CDB, ...) consume the `*.natvis` files we embed into rust `*.pdb` files. While this only tests CDB, that test coverage should help for all of them. # Changes ## src\bootstrap - test.rs: Run CDB debuginfo tests on MSVC targets ## src\test\debuginfo - issue-13213.rs: CDB has trouble with this, skip for now (newly discovered regression?) - pretty-std.rs: Was ignored, re-enable for CDB only to start with, add CDB tests. - should-fail.rs: Add CDB tests. ## src\tools\compiletest: - Added "-cdb" option - Added Mode::DebugInfoCdb ("debuginfo-cdb") - Added run_debuginfo_cdb_test[_no_opt] - Renamed Mode::DebugInfoBoth -> DebugInfoGdbLldb ("debuginfo-gdb+lldb") since it's no longer clear what "Both" means. - Find CDB at the default Win10 SDK install path "C:\Program Files (x86)\Windows Kits\10\Debugger\\*\cdb.exe" - Ignore CDB tests if CDB not found. # Issues - `compute_stamp_hash`: not sure if there's any point in hashing `%ProgramFiles(x86)%` - `OsString` lacks any `*.natvis` entries (would be nice to add in a followup changelist) - DSTs (array/string slices) which work in VS & VS Code fail in CDB. - I've avoided `Mode::DebugInfoAll` as 3 debuggers leads to pow(2,3)=8 possible combinations. # Reference CDB is not part of the base Visual Studio install, but can be added via the Windows 10 SDK: https://developer.microsoft.com/en-us/windows/downloads/windows-10-sdk Installing just "Debugging Tools for Windows" is sufficient. CDB appears to already be installed on appveyor CI, where this changelist can find it, based on it's use here: https://github.com/rust-lang/rust/blob/0ffc57311030a1930edfa721fe57d0000a063af4/appveyor.yml#L227 CDB commands and command line reference: https://docs.microsoft.com/en-us/windows-hardware/drivers/debugger/debugger-reference
2019-05-23tidy: don't short-circuit on license errorEric Huss-1/+1
If there is more than one license error, tidy would only print the first error. This changes it so that all license errors are printed.
2019-05-23Update cargoEric Huss-0/+3
2019-05-22Update clippy submoduleOliver Scherer-11/+9
2019-05-21Update webrender we're testingAlex Crichton-1/+1
The one locked here has a dependency on an old enough `cmake` crate that it's not detecting visual studio correctly. Let's update webrender which updates `cmake` which should be able to detect Visual Studio correctly.
2019-05-21Move `edition` outside the hygiene lock and avoid accessing itJohn Kåre Alsaker-1/+1