about summary refs log tree commit diff
path: root/src/tools
AgeCommit message (Collapse)AuthorLines
2021-06-23Remove unused error codes from error_codes.rs and from EXEMPTED_FROM_TEST ↵Guillaume Gomez-4/+2
constant
2021-06-23Add check on constant to ensure it's up to dateGuillaume Gomez-4/+25
2021-06-23Check if error code is usedGuillaume Gomez-16/+99
2021-06-23Add bstr to rustc-workspace-hack for rustfmt/cargo.Eric Huss-0/+1
2021-06-22Update cargoEric Huss-0/+0
2021-06-22Rollup merge of #86297 - GuillaumeGomez:rustdoc-gui-args, r=Mark-SimulacrumYuki Okushi-25/+42
Allow to pass arguments to rustdoc-gui tool Very convenient for testing. This is another part of https://github.com/rust-lang/rust/pull/86293 cc ``@jsha`` r? ``@Mark-Simulacrum``
2021-06-22Rollup merge of #85182 - CDirkx:available_concurrency, r=JohnTitorYuki Okushi-1/+0
Move `available_concurrency` implementation to `sys` This splits out the platform-specific implementation of `available_concurrency` to the corresponding platforms under `sys`. No changes are made to the implementation. Tidy didn't lint against this code being originally added outside of `sys` because of a bug (see #84677), this PR also reverts the exclusion that was introduced in that bugfix. Tracking issue of `available_concurrency`: #74479
2021-06-21Auto merge of #86515 - JohnTitor:rollup-axzb4xh, r=JohnTitorbors-42/+87
Rollup of 9 pull requests Successful merges: - #86192 (Make OR_PATTERNS_BACK_COMPAT be a 2021 future-incompatible lint) - #86248 (Add a regression test for issue-85113) - #86274 (Spaces) - #86349 (Add regression test for issue #78632) - #86424 (rustfmt: load nested out-of-line mods correctly) - #86472 (Fix CI to fetch master on beta channel) - #86473 (Rustdoc: Account for const-unstable functions) - #86495 (Improve `proc_macro::{Punct, Spacing}` documentation) - #86503 (Fix rust.css fonts.) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
2021-06-22Rollup merge of #86424 - calebcartwright:rustfmt-mod-resolution, ↵Yuki Okushi-1/+46
r=Mark-Simulacrum rustfmt: load nested out-of-line mods correctly This should address https://github.com/rust-lang/rustfmt/issues/4874 r? `@Mark-Simulacrum` Decided to make the change directly in tree here for expediency/to minimize any potential backporting issues, and because there's some subtree sync items I need to get resolved before pulling from r-l/rustfmt
2021-06-22Rollup merge of #86274 - alexander-melentyev:spaces, r=bjorn3Yuki Okushi-41/+41
Spaces
2021-06-21Auto merge of #86210 - ehuss:rustfix-update, r=Mark-Simulacrumbors-3/+26
Rustfix update This updates to rustfix 0.6.0. One of the key changes here is https://github.com/rust-lang/rustfix/pull/195 which changes rustfix to apply multi-part suggestions. One of the tests needs to updated because there are some overlapping suggestions which rustfix cannot handle. The solution is to only apply the machine-applicable suggestions to avoid the overlapping issue. This also includes a minor change to compiletest to provide better error messages with rustfix.
2021-06-21Remove tidy exception for `available_concurrency`Christiaan Dirkx-1/+0
2021-06-21Delete spacesAlexander Melentyev-41/+41
2021-06-21Rollup merge of #86156 - ehuss:linkchecker-fixes, r=Mark-SimulacrumYuki Okushi-8/+48
Fix a bug in the linkchecker There was a small typo in the linkchecker (in #85652) that caused it to report a `#` fragment link error pointing to the wrong file (it was displaying the path to the source file, not the target of the link). This also includes a few other changes: - Fixes the tests due to some changes in the redirect handling in #84703. - Adds the tests to rustbuild to run whenever the linkchecker itself is run. - Updates the tests to validate more of the output (so that a mistake like this would have been caught). Closes #86144
2021-06-20tidy: Check that cargo and compiletest share the same rustfix.Eric Huss-0/+20
2021-06-20compiletest: display the error if rustfix failsEric Huss-2/+5
2021-06-20Update rustfix for compiletest.Eric Huss-1/+1
2021-06-20update MiriRalf Jung-8/+10
2021-06-19Auto merge of #86426 - hi-rustin:rustin-patch-lint-warn, r=Aaron1011bors-20/+20
Lint for unused borrows as part of UNUSED_MUST_USE close https://github.com/rust-lang/rust/issues/76264 base on https://github.com/rust-lang/rust/pull/76894 r? `@RalfJung`
2021-06-18Auto merge of #85421 - Smittyvb:rm_pushpop_unsafe, r=matthewjasperbors-3/+1
Remove some last remants of {push,pop}_unsafe! These macros have already been removed, but there was still some code handling these macros. That code is now removed.
2021-06-18Address commenthi-rustin-10/+10
2021-06-18Make clippy tests happyhi-rustin-30/+30
2021-06-18update MiriRalf Jung-75/+8
2021-06-17fix(rustfmt): load nested out-of-line mods correctlyCaleb Cartwright-1/+46
2021-06-17Use `AttrVec` for `Arm`, `FieldDef`, and `Variant`Yuki Okushi-3/+3
2021-06-16Allow to pass arguments to rustdoc-gui toolGuillaume Gomez-25/+42
2021-06-16Rollup merge of #86293 - GuillaumeGomez:filter-gui-tests-run, r=jshaYuki Okushi-3/+15
Allow to run only a few GUI tests It allows to specify only one (or more) GUI tests. Considering the tests are not super fast to run, this is very useful for development. cc `@Mark-Simulacrum` r? `@jsha`
2021-06-15Auto merge of #86321 - JohnTitor:rollup-q61c8q4, r=JohnTitorbors-19/+16
Rollup of 10 pull requests Successful merges: - #80269 (Explain non-dropped sender recv in docs) - #82179 (Add functions `Duration::try_from_secs_{f32, f64}`) - #85608 (Stabilize `ops::ControlFlow` (just the type)) - #85792 (Refactor windows sockets impl methods) - #86220 (Improve maybe_uninit_extra docs) - #86277 (Remove must_use from ALLOWED_ATTRIBUTES) - #86285 (:arrow_up: rust-analyzer) - #86294 (Stabilize {std, core}::prelude::rust_*.) - #86306 (Add mailmap entries for myself) - #86314 (Remove trailing triple backticks in `mut_keyword` docs) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
2021-06-15Update Mirihyd-dev-12/+72
2021-06-14Allow to run only a few GUI testsGuillaume Gomez-3/+15
2021-06-14:arrow_up: rust-analyzerLaurențiu Nicola-19/+16
2021-06-12Update cargoEric Huss-0/+0
2021-06-11Auto merge of #85961 - 1000teslas:issue-71519-fix, r=petrochenkovbors-0/+13
MVP for using rust-lld as part of cc Will fix #71519. I need to figure out how to write a test showing that lld is used instead of whatever linker cc normally uses. When I manually run rustc using `echo 'fn main() {}' | RUSTC_LOG=rustc_codegen_ssa::back::link=debug ./rustc -Clinker-flavor=gcc-lld --crate-type bin -Clink-arg=-Wl,-v` (thanks to bjorn3 on Zulip), I can see that lld is used, but I'm not sure how to inspect that output in a test.
2021-06-10Auto merge of #80080 - rylev:qpath-on-struct, r=petrochenkovbors-18/+31
Allow qualified paths in struct construction (both expressions and patterns) Fixes #79658
2021-06-10Auto merge of #86098 - pietroalbini:test-stable, r=Mark-Simulacrumbors-1/+22
Add the x86_64-gnu-stable builder During the 1.52 release process we had to deal with some commits that passed the test suite on the nightly branch but failed on the beta or stable branch. In that case it was due to some UI tests including the channel name in the output, but other changes might also be dependent on the channel. This commit adds a new CI job that runs the Linux x86_64 test suite with the stable branch, ensuring nightly changes also work as stable. To ensure the new job works the following other changes are present: * The `ui-fulldeps/session-derive-errors.rs` test has been disabled on beta and stable, which required adding support for `// ignore-{channel}` and `// only-{channel}`. * The `rustdoc/intra-doc/field.rs` has been fixed. r? `@Mark-Simulacrum` fixes https://github.com/rust-lang/release-team/issues/11
2021-06-10Auto merge of #82639 - jyn514:stable-options, r=Mark-Simulacrumbors-0/+6
Don't pass -Z unstable-options by default for UI tests Unconditionally passing -Z unstable-options makes it impossible to test whether an option requires unstable-options or not. This uncovered quite a lot of bugs, I'll open issues for each. These don't strictly need to be fixed before this is merged, it just makes the diff much larger because of the changes to diagnostics. - https://github.com/rust-lang/rust/issues/82636 - https://github.com/rust-lang/rust/issues/82637 - https://github.com/rust-lang/rust/issues/82638
2021-06-10Add support for using qualified paths with structs in expression and patternRyan Levick-18/+31
position.
2021-06-10gcc-lld mvp1000teslas-0/+13
ignore test if rust-lld not found create ld -> rust-lld symlink at build time instead of run time for testing in ci copy instead of symlinking remove linux check test for linker, suggestions from bjorn3 fix overly restrictive lld matcher use -Zgcc-ld flag instead of -Clinker-flavor refactor code adding lld to gcc path revert ci changes suggestions from petrochenkov rename gcc_ld to gcc-ld in dirs
2021-06-10Rollup merge of #86175 - RalfJung:miri, r=RalfJungYuki Okushi-9/+15
update Miri We had some nice PRs land today, let's ship those. :) Cc `@rust-lang/miri` r? `@ghost`
2021-06-10Rollup merge of #85997 - jyn514:rustdoc-diff, r=Mark-SimulacrumYuki Okushi-9/+21
rustdoc: Print a warning if the diff when comparing to old nightlies is empty This avoids confusing situations where it's unclear whether there's a bug in the diff tool or not: ``` 26: `@has` check failed `XPATH PATTERN` did not match // `@has` - '//code/a[`@href="{{channel}}/std/primitive.i32.html"]'` 'i32' Encountered 6 errors ------------------------------------------ info: generating a diff against nightly rustdoc failures: [rustdoc] rustdoc/primitive-reexport.rs ```
2021-06-09update MiriRalf Jung-9/+15
2021-06-09Auto merge of #86003 - pnkfelix:issue-84297-revert-81238, r=Mark-Simulacrumbors-2/+2
Make copy/copy_nonoverlapping fn's again Make copy/copy_nonoverlapping fn's again, rather than intrinsics. This a short-term change to address issue #84297. It effectively reverts PRs #81167 #81238 (and part of #82967), #83091, and parts of #79684.
2021-06-09linkchecker: Fix bug where fragment errors printed the wrong path.Eric Huss-2/+3
2021-06-09Change the linkchecker self-tests to validate more output.Eric Huss-7/+42
2021-06-08Update cargoEric Huss-0/+0
2021-06-08Fix linkchecker redirection tests.Eric Huss-0/+4
These were changed in #84703.
2021-06-08Update Mirihyd-dev-10/+9
2021-06-08Auto merge of #86127 - JohnTitor:rollup-0c6mp3j, r=JohnTitorbors-15/+19
Rollup of 11 pull requests Successful merges: - #85906 (Use `Iterator::find` instead of open-coding it) - #85951 (Update the documentation of `-C force-unwind-tables` for #83482) - #85985 (Clarify documentation of slice sorting methods) - #85989 (Remove rustfmt tests from top-level .gitattributes) - #86074 (Default panic message should print Box<dyn Any>) - #86078 (Type page font weight) - #86090 (:arrow_up: rust-analyzer) - #86095 (Search description codeblock) - #86096 (Comment out unused error codes and add description for E0316) - #86101 (Correct type signature in doc for Bound::as_mut) - #86103 (Remove lifetime hack) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
2021-06-07Update RLSIgor Matuszewski-0/+0
This bumps racer to 2.1.48, which bumps rustc-ap-* crates to v722 in order to unbreak the toolstate.
2021-06-07ignore ui-fulldeps/session-derive-errors.rs on beta and stablePietro Albini-1/+22
The session-derive-errors test ensures the internal SessionDiagnostic derive macro outputs the right error messages when misused. The macro relies on the proc_macro2 crate though, which changes its span behavior depending on whether the channel is nightly or not. This caused test failures when bumping the channel from nightly to beta/stable. Since SessionDiagnostic is internal-only we don't care about its diagnostics quality outside of nightly, as the compiler itself is developed on nightly. Thus the easiest solution is to ignore that test on the beta and stable channels. This also implements `// only-{channel}` and `// ignore-{channel}` in compiletest to properly support the change.