about summary refs log tree commit diff
path: root/src/tools
AgeCommit message (Collapse)AuthorLines
2021-05-08Update Mirihyd-dev-9/+8
2021-05-08Auto merge of #85059 - ehuss:update-cargo, r=ehussbors-0/+0
Update cargo 7 commits in f3e13226d6d17a2bc5f325303494b43a45f53b7f..e51522ab3db23b0d8f1de54eb1f0113924896331 2021-04-30 21:50:27 +0000 to 2021-05-07 21:29:52 +0000 - Add CARGO_TARGET_TMPDIR env var for integration tests & benches (rust-lang/cargo#9375) - Bump to 0.55.0, update changelog (rust-lang/cargo#9464) - Some updates to the unstable documentation (rust-lang/cargo#9457) - Add CARGO_PROFILE_<name>_SPLIT_DEBUGINFO to env docs. (rust-lang/cargo#9456) - Add `report` subcommand. (rust-lang/cargo#9438) - Respect Cargo.toml `[package.exclude]` even not in a git repo. (rust-lang/cargo#9186) - Document the other crates in the codebase in the contrib guide. (rust-lang/cargo#9439)
2021-05-08Auto merge of #85058 - Xanewok:update-rls, r=Xanewokbors-0/+0
Update RLS This mostly just includes https://github.com/rust-lang/rls/commit/e33f4e68496b296dedb100e297dc4451f169b2b3 so that this fixes #85055 (clippy-related breakage).
2021-05-07Update cargoEric Huss-0/+0
2021-05-08Update RLSIgor Matuszewski-0/+0
2021-05-08Rollup merge of #85038 - GuillaumeGomez:dont-stop-first-rustdoc-gui-failure, ↵Dylan DPC-24/+30
r=Mark-Simulacrum Don't stop running rustdoc-gui tests at first failure I just realized that before this PR, the rustdoc-gui test suite was stopping at the first failure, which isn't very convenient. All tests are now running and if one failed, it returns an error at the end once all tests have run. r? `@Mark-Simulacrum`
2021-05-07Fix duplicate unknown lint errorsCameron Steffen-28/+4
2021-05-07Auto merge of #84980 - flip1995:clippyup, r=Manishearthbors-1057/+2323
Update Clippy Bi-weekly Clippy update. r? `@Manishearth`
2021-05-07Don't stop running rustdoc-gui tests at first failureGuillaume Gomez-24/+30
2021-05-07Rollup merge of #84779 - jyn514:cargotest-args, r=Mark-SimulacrumYuki Okushi-1/+3
Add support for --test-args to cargotest This allows running a single test without having to wait for all tests to complete. Closes https://github.com/rust-lang/rust/issues/77260.
2021-05-07Rollup merge of #84872 - bjorn3:cg_clif_tidy, r=Mark-SimulacrumDylan DPC-47/+136
Wire up tidy dependency checks for cg_clif Also contains a fix and improvement to tidy. Required for https://github.com/rust-lang/rust/pull/81746.
2021-05-07Rollup merge of #84734 - tmandry:compiletest-needs-unwind, r=Mark-SimulacrumDylan DPC-6/+30
Add `needs-unwind` and beginning of support for testing `panic=abort` std to compiletest For the Fuchsia platform we build libstd with `panic=abort` and would like a way to run tests with that enabled. This adds low-level support for this directly to compiletest. In the future I'd like to add high-level support in rustbuild, e.g. having target-specific flags that allow configuring a panic strategy. (Side note: It would be nice if we could also build multiple configurations for the same target, but I'm getting ahead of myself.) This plus #84500 have everything that's needed to get ui tests passing on fuchsia targets. Part of #84766. Note that this change only includes the header on tests which need an unwinder to _build_, not those which need it to _run_. r? ````@Mark-Simulacrum````
2021-05-07Rollup merge of #84500 - tmandry:compiletest-run-flag, r=Mark-SimulacrumDylan DPC-14/+71
Add --run flag to compiletest This controls whether run-* tests actually get run. r? ```@Mark-Simulacrum```
2021-05-06Fix clippyScott McMurray-3/+3
2021-05-06Rollup merge of #84851 - lnicola:rust-analyzer-2021-05-03, r=jonas-schievinkDylan DPC-21/+15
:arrow_up: rust-analyzer
2021-05-06Merge commit 'b71f3405606d49b9735606b479c3415a0ca9810f' into clippyupflip1995-1057/+2323
2021-05-06Support multi target-rustcflags for -Zpanic-abort-testsTyler Mandry-4/+4
I just need this until rustbuild supports -Cpanic=abort std directly.
2021-05-06compiletest: Add --target-panic, needs-unwindTyler Mandry-2/+26
2021-05-05Use local and remapped paths where appropriateAndy Wang-5/+4
2021-05-05Auto merge of #84200 - CDirkx:os, r=m-ou-sebors-1/+1
Move all `sys::ext` modules to `os` This PR moves all `sys::ext` modules to `os`, centralizing the location of all `os` code and simplifying the dependencies between `os` and `sys`. Because this also removes all uses `cfg_if!` on publicly exported items, where after #81969 there were still a few left, this should properly work around https://github.com/rust-analyzer/rust-analyzer/issues/6038. `@rustbot` label: +T-libs-impl
2021-05-05Add `yansi-term` as a permitted dependencyJoshua Nelson-0/+2
2021-05-05Update RLS and RustfmtIgor Matuszewski-5/+5
2021-05-04Auto merge of #84900 - hyd-dev:miri, r=RalfJungbors-8/+9
Update Miri This should fix #84848. r? `@RalfJung`
2021-05-04Normalise remapped sysroot path as $SRC_DIRAndy Wang-0/+6
2021-05-04Update Mirihyd-dev-8/+9
2021-05-04Auto merge of #83213 - rylev:update-lints-to-errors, r=nikomatsakisbors-0/+9
Update BARE_TRAIT_OBJECT and ELLIPSIS_INCLUSIVE_RANGE_PATTERNS to errors in Rust 2021 This addresses https://github.com/rust-lang/rust/pull/81244 by updating two lints to errors in the Rust 2021 edition. r? `@estebank`
2021-05-03compiletest: "fix" FileCheck with --allow-unused-prefixesAugie Fackler-1/+1
The default of --allow-unused-prefixes used to be false, but in LLVM change 87dbdd2e3b (https://reviews.llvm.org/D95849) the default became true. I'm not quite sure how we could do better here (specifically not providing the CHECK prefix when it's not needed), but this seems to work for now.
2021-05-03Wire up tidy dependency checks for cg_clifbjorn3-21/+113
2021-05-03Take build dependencies into account during license checksbjorn3-10/+1
The comment says that build dependencies shouldn't matter unless they do some kind of codegen. It is safer to always check it though.
2021-05-03Remove obsolete crate exceptionsbjorn3-15/+0
2021-05-03Fix RESTRICTED_DEPENDENCY_CRATES to list rustc_driver instead of rustc_middlebjorn3-1/+22
2021-05-03Change `std::sys::unix::ext::fs::PermissionsExt::from_mode` to ↵Christiaan Dirkx-1/+1
`std::os::imp::unix::fs::PermissionsExt::from_mode` in Clippy
2021-05-03proof of concept add test type on printsAliénore Bouttefeux-0/+2
2021-05-03:arrow_up: rust-analyzerLaurențiu Nicola-21/+15
2021-05-02Add ErrorKind::OutOfMemoryKornel-2/+4
2021-05-01Add support for --test-args to cargotestJoshua Nelson-1/+3
This allows running a single test without having to wait for all tests to complete.
2021-04-30Update cargoEric Huss-0/+0
2021-04-30Update Mirihyd-dev-7/+9
2021-04-30Auto merge of #84401 - crlf0710:impl_main_by_path, r=petrochenkovbors-1/+1
Implement RFC 1260 with feature_name `imported_main`. This is the second extraction part of #84062 plus additional adjustments. This (mostly) implements RFC 1260. However there's still one test case failure in the extern crate case. Maybe `LocalDefId` doesn't work here? I'm not sure. cc https://github.com/rust-lang/rust/issues/28937 r? `@petrochenkov`
2021-04-30Add needs-run-enabled directive for should-fail testsTyler Mandry-5/+14
I was wary of doing any automatic disabling here, since should-fail is how we test compiletest itself.
2021-04-30Include --run in stamp hashTyler Mandry-0/+1
2021-04-30Add support for --run for non-ui testsTyler Mandry-16/+42
2021-04-30Add --run flag to compiletestTyler Mandry-5/+26
This controls whether run-* tests actually get run.
2021-04-29Fix clippy errorRyan Levick-0/+8
2021-04-29Auto merge of #84189 - jyn514:clippy-dev, r=Mark-Simulacrumbors-10/+3
Implement `x.py test src/tools/clippy --bless` - Add clippy_dev to the rust workspace Before, it would give an error that it wasn't either included or excluded from the workspace: ``` error: current package believes it's in a workspace when it's not: current: /home/joshua/rustc/src/tools/clippy/clippy_dev/Cargo.toml workspace: /home/joshua/rustc/Cargo.toml this may be fixable by adding `src/tools/clippy/clippy_dev` to the `workspace.members` array of the manifest located at: /home/joshua/rustc/Cargo.toml Alternatively, to keep it out of the workspace, add the package to the `workspace.exclude` array, or add an empty `[workspace]` table to the package's manifest. ``` - Change clippy's copy of compiletest not to special-case rust-lang/rust. Using OUT_DIR confused `clippy_dev` and it couldn't find the test outputs. This is one of the reasons why `cargo dev bless` used to silently do nothing (the others were that `CARGO_TARGET_DIR` and `PROFILE` weren't set appropriately). - Run clippy_dev on test failure I tested this by removing a couple lines from a stderr file, and they were correctly replaced. - Fix clippy_dev warnings
2021-04-28Rollup merge of #84531 - Smittyvb:foo-not-feature, r=Mark-SimulacrumJack Huey-0/+9
Ignore commented out lines when finding features This fixes #76246, where commented out lines were being detected as features by `tidy`, by ignoring those lines when looking for features. It's still not perfect, since it can be fooled by things like: ```rust /* #[unstable(feature = "foo", issue = "1234")] */ ``` But luckily that never happens in `rustc`, so `foo` now ceases to appear in the unstable book.
2021-04-28Rollup merge of #84484 - jyn514:check-tools, r=Mark-SimulacrumJack Huey-2/+2
Don't rebuild rustdoc and clippy after checking bootstrap This works by unconditionally passing -Z unstable-options to the compiler. This has no affect in practice since bootstrap doesn't use `deny(rustc::internal)`. Fixes https://github.com/rust-lang/rust/issues/82461. r? ```@Mark-Simulacrum```
2021-04-29Implement RFC 1260 with feature_name `imported_main`.Charles Lew-1/+1
2021-04-29Fix tidy platform-specific code checkChristiaan Dirkx-48/+28
2021-04-28:arrow_up: rust-analyzerLaurențiu Nicola-18/+22