about summary refs log tree commit diff
path: root/src/tools
AgeCommit message (Collapse)AuthorLines
2023-01-12Rollup merge of #106733 - DebugSteven:revert-104552-warn-newer-x, r=jyn514Matthias Krüger-70/+1
Revert "warn newer available version of the x tool" Reverts rust-lang/rust#104552 Running the x executable directly created an [issue](https://github.com/rust-lang/rust/issues/106469) here. There are other options for warning a user that a newer version of x exists in the issue's discussion as well. r? `@jyn514`
2023-01-11keep --wrapper-version argument in xDebugSteven-0/+8
2023-01-11Deny having src/test exisiting in tidyAlbert Larsan-0/+17
2023-01-11Revert "warn newer available version of the x tool"J Haigh-78/+1
2023-01-11Change `src/test` to `tests` in source files, fix tidy and testsAlbert Larsan-51/+63
2023-01-11Rollup merge of #106689 - GuillaumeGomez:rustdoc-gui-files-array, r=notriddleYuki Okushi-1/+2
Fix invalid files array re-creation in rustdoc-gui tester It fixes the error <code>expected `runTest` first argument to be a string</code>: ``` { file_name: { file_name: '/home/imperio/rust/rust/src/test/rustdoc-gui/type-declation-overflow.goml', output: 'type-declation-overflow... FAILED\n' + '...' }, output: Error: expected `runTest` first argument to be a string at runTest (/home/imperio/rust/rust/node_modules/browser-ui-test/src/index.js:591:15) at runTests (/home/imperio/rust/rust/src/tools/rustdoc-gui/tester.js:144:26) at main (/home/imperio/rust/rust/src/tools/rustdoc-gui/tester.js:278:15) } Error: expected `runTest` first argument to be a string at runTest (/home/imperio/rust/rust/node_modules/browser-ui-test/src/index.js:591:15) at runTests (/home/imperio/rust/rust/src/tools/rustdoc-gui/tester.js:144:26) at main (/home/imperio/rust/rust/src/tools/rustdoc-gui/tester.js:278:15) ``` The problem was that I concatenated two arrays of object whereas `files` is supposed to be an array of string. r? `@notriddle`
2023-01-10Fix invalid files array re-creation in rustdoc-gui testerGuillaume Gomez-1/+2
2023-01-10bump Cargo submodule to fix CVE-2022-46176Pietro Albini-0/+0
2023-01-10Auto merge of #106656 - JohnTitor:rollup-rk2qltg, r=JohnTitorbors-35/+246
Rollup of 9 pull requests Successful merges: - #105034 (Add example for iterator_flatten) - #105708 (Enable atomic cas for bpf targets) - #106175 (Fix bad import suggestion with nested `use` tree) - #106204 (No need to take opaques in `check_type_bounds`) - #106387 (Revert "bootstrap: Get rid of `tail_args` in `stream_cargo`") - #106636 (Accept old spelling of Fuchsia target triples) - #106639 (update Miri) - #106640 (update test for inductive canonical cycles) - #106647 (rustdoc: merge common CSS for `a`) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
2023-01-10Rollup merge of #106639 - RalfJung:miri, r=RalfJungYuki Okushi-35/+246
update Miri Notable PRs: - https://github.com/rust-lang/miri/pull/2748 - https://github.com/rust-lang/miri/pull/2752 r? `@ghost`
2023-01-09Auto merge of #105855 - arcnmx:rust-analyzer-2022-12, r=lnicolabors-5744/+14558
:arrow_up: rust-analyzer Updates rust-analyzer to https://github.com/rust-lang/rust-analyzer/commit/368e0bb32f1178cf162c2ce5f7e10b7ae211eb26 This is a continuation/replacement of #105834, close that if this is chosen instead.
2023-01-09:arrow_up: rust-analyzerarcnmx-5744/+14558
Merge commit '368e0bb32f1178cf162c2ce5f7e10b7ae211eb26'
2023-01-09Rollup merge of #106614 - Ezrashaw:ui-test-fixups-2, r=GuillaumeGomezfee1-dead-1/+7
error-code docs improvements (No. 2) - Added empty error-code docs for `E0208`, `E0640` and `E0717` with the "internal" header as discussed on Discord. - Wrote docs and UI test for `E0711`, again with the header. - `tidy` changes are common-sense and make everything pass, `style.rs` hack is annoying though. r? ```@GuillaumeGomez```
2023-01-09add dtors_in_dtors_in_dtorsRalf Jung-0/+57
2023-01-09Auto merge of #2753 - RalfJung:rustup, r=RalfJungbors-531/+996
Rustup Pulls in https://github.com/rust-lang/rust/pull/104658
2023-01-09Merge from rustcRalf Jung-530/+995
2023-01-09Preparing for merge from rustcRalf Jung-1/+1
2023-01-09Auto merge of #2752 - RalfJung:win-env-current-exe, r=RalfJungbors-13/+85
make env::current_exe work on Windows
2023-01-09make env::current_exe work on WindowsRalf Jung-13/+85
2023-01-09fix: fix CI errorsEzra Shaw-1/+7
2023-01-08Rollup merge of #106602 - GuillaumeGomez:tidy-goml-scripts, r=Mark-SimulacrumMichael Goulet-2/+11
Add goml scripts to tidy checks r? ``@notriddle``
2023-01-08Add goml scripts to tidy checksGuillaume Gomez-2/+11
2023-01-08Auto merge of #106449 - GuillaumeGomez:rustdoc-gui-retry-mechanism, ↵bors-46/+76
r=Mark-Simulacrum Add retry mechanism for rustdoc GUI tests to reduce flakyness Part of #93784. I added 3 retries for failing GUI tests. An important note: if more than half of total tests fail, I don't retry because it's very likely not flakyness anymore at this point but a missing update after changes.
2023-01-08Rollup merge of #106580 - Ezrashaw:remove-e0313, r=compiler-errorsYuki Okushi-2/+2
remove unreachable error code `E0313` Fixes #103742 Makes #103433 redundant Implements removal of `E0313`. I agree with the linked issue that this error code is unreachable but if someone could confirm that would be great, are crater runs done for this sort of thing? Also removed a redundant `// ignore-tidy-filelength` that I found while reading code. cc ``@GuillaumeGomez`` #61137
2023-01-08Rollup merge of #106557 - Ezrashaw:ui-test-fixups-1, r=GuillaumeGomezYuki Okushi-12/+15
Add some UI tests and reword error-code docs Added UI tests for `E0013` and `E0015`. Error code docs for `E0015` were a bit unclear (they referred to all non-const errors in const context, when only non-const functions applied), so I touched them up a bit. I also fixed up some issues in the new `error_codes.rs` tidy check (linked #106341), that I overlooked previously. r? ``@GuillaumeGomez``
2023-01-08Rollup merge of #106546 - aDotInTheVoid:jsondoclint-path-local-item, r=notriddleYuki Okushi-4/+125
jsondoclint: Check local items in `paths` are also in `index`. Would have caught #104064 (if core.json was linted in CI). Closes #106433. r? rustdoc
2023-01-08remove unreachable error code `E0313`Ezra Shaw-2/+2
2023-01-08Auto merge of #104658 - thomcc:rand-update-and-usable-no_std, r=Mark-Simulacrumbors-1/+0
Update `rand` in the stdlib tests, and remove the `getrandom` feature from it. The main goal is actually removing `getrandom`, so that eventually we can allow running the stdlib test suite on tier3 targets which don't have `getrandom` support. Currently those targets can only run the subset of stdlib tests that exist in uitests, and (generally speaking), we prefer not to test libstd functionality in uitests, which came up recently in https://github.com/rust-lang/rust/pull/104095 and https://github.com/rust-lang/rust/pull/104185. Additionally, the fact that we can't update `rand`/`getrandom` means we're stuck with the old set of tier3 targets, so can't test new ones. ~~Anyway, I haven't checked that this actually does allow use on tier3 targets (I think it does not, as some work is needed in stdlib submodules) but it moves us slightly closer to this, and seems to allow at least finally updating our `rand` dep, which definitely improves the status quo.~~ Checked and works now. For the most part, our tests and benchmarks are fine using hard-coded seeds. A couple tests seem to fail with this (stuff manipulating the environment expecting no collisions, for example), or become pointless (all inputs to a function become equivalent). In these cases I've done a (gross) dance (ab)using `RandomState` and `Location::caller()` for some extra "entropy". Trying to share that code seems *way* more painful than it's worth given that the duplication is a 7-line function, even if the lines are quite gross. (Keeping in mind that sharing it would require adding `rand` as a non-dev dep to std, and exposing a type from it publicly, all of which sounds truly awful, even if done behind a perma-unstable feature). See also some previous attempts: - https://github.com/rust-lang/rust/pull/86963 (in particular https://github.com/rust-lang/rust/pull/86963#issuecomment-885438936 which explains why this is non-trivial) - https://github.com/rust-lang/rust/pull/89131 - https://github.com/rust-lang/rust/pull/96626#issuecomment-1114562857 (I tried in that PR at the same time, but settled for just removing the usage of `thread_rng()` from the benchmarks, since that was the main goal). - https://github.com/rust-lang/rust/pull/104185 - Probably more. It's very tempting of a thing to "just update". r? `@Mark-Simulacrum`
2023-01-07Rollup merge of #106509 - estebank:closure-in-block, r=davidtwcoMatthias Krüger-0/+1
Detect closures assigned to binding in block Fix #58497.
2023-01-07minor fixes for `error_codes.rs` tidy checkEzra Shaw-12/+15
2023-01-07Auto merge of #106544 - matthiaskrgr:rollup-e9prjed, r=matthiaskrgrbors-386/+384
Rollup of 7 pull requests Successful merges: - #106287 (Add some docs to `bug`, `span_bug` and `delay_span_bug`) - #106341 (refactor: clean up `errors.rs` and `error_codes_check.rs`) - #106453 (Improve include macro documentation) - #106466 (Fix rustdoc source code rendering for `#[path = "../path/to/mod.rs"]` links) - #106528 (Tiny formatting fix) - #106534 (rustdoc-gui: Use new block syntax for define-function in goml scripts) - #106542 (Add default and latest stable edition to --edition in rustc (attempt 2)) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
2023-01-06jsondoclint: Check local items in `paths` are also in `index`.Nixon Enraght-Moony-4/+125
2023-01-06Bump tokio from 1.23.0 to 1.23.1 in /test_dependenciesdependabot[bot]-3/+3
Bumps [tokio](https://github.com/tokio-rs/tokio) from 1.23.0 to 1.23.1. - [Release notes](https://github.com/tokio-rs/tokio/releases) - [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.23.0...tokio-1.23.1) --- updated-dependencies: - dependency-name: tokio dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com>
2023-01-06Auto merge of #106415 - Nilstrieb:where-is-my-master-branch, r=jyn514bors-0/+125
Handle non-existent upstream master branches in `x fmt` People who do have a remote for `rust-lang/rust` but don't have the master branch checked out there used to get this error when running `x fmt`: > fatal: ambiguous argument 'rust/master': unknown revision or path not in the working tree. > Use '--' to separate paths from revisions, like this: > 'git <command> [<revision>...] -- [<file>...]' > rust/master Which is not exactly helpful. Now, we fall back to `origin/master` (hoping that at least that remote exists) for that case. If there is still some error, we just fall back to `x fmt .` and print a warning. r? `@jyn514`
2023-01-06Rollup merge of #106341 - Ezrashaw:refactor-error-code-tidy-check, ↵Matthias Krüger-386/+384
r=mejrs,klensy,GuillaumeGomez refactor: clean up `errors.rs` and `error_codes_check.rs` `errors.rs` is basically unused now, `error_codes_check.rs` is useful but not well commented, etc. It also doesn't check certain things which are certainly not correct. For example, `E0505` has a UI test in `src/test/ui/error-codes/` but that test actually outputs `E0504`?! Other issues like these exist. I've implemented these with "warnings" which are a bit rough around the edges but should be removed eventually. r? `@GuillaumeGomez` (again not sure if you want to review but its relevant to you)
2023-01-06Handle non-existant upstream master branches in `x fmt`Nilstrieb-2/+47
2023-01-06Auto merge of #106529 - Dylan-DPC:rollup-mvncmrk, r=Dylan-DPCbors-14/+11
Rollup of 5 pull requests Successful merges: - #106400 (Point at expressions where inference refines an unexpected type) - #106491 (Fix error-index redirect to work with the back button.) - #106494 (Add regression test for #58355) - #106499 (fix [type error] for error E0029 and E0277) - #106502 (rustdoc: remove legacy user-select CSS) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
2023-01-05Test again wasm32-unknown-unknownAaron Hill-2/+80
2023-01-05Ignore symbol shim clash when symbol is provided by `compiler_builtins`Aaron Hill-1/+10
When this happens, we ignore the symbol from `compiler_builtins` in favor of Miri's builtin support. This allows Miri to target platforms like wasm32-unknown-unknown, where functions like `memcmp` are provided by `compiler_builtins`.
2023-01-05Detect closures assigned to binding in blockEsteban Küber-0/+1
Fix #58497.
2023-01-05error-index: Don't generate 404 instead of removing it.Eric Huss-3/+1
2023-01-05Fix error-index redirect to work with back button.Eric Huss-11/+10
2023-01-05Add vendor to Fuchsia's target tripleDavid Koloski-6/+6
Historically, Rust's Fuchsia targets have been labeled x86_64-fuchsia and aarch64-fuchsia. However, they should technically contain vendor information. This CL changes Fuchsia's target triples to include the "unknown" vendor since Clang now does normalization and handles all triple spellings. This was previously attempted in #90510, which was closed due to inactivity.
2023-01-04Rollup merge of #106403 - compiler-errors:rename-hir-methods, r=cjgillotMichael Goulet-24/+23
Rename `hir::Map::{get_,find_}parent_node` to `hir::Map::{,opt_}parent_id`, and add `hir::Map::{get,find}_parent` The `hir::Map::get_parent_node` function doesn't return a `Node`, and I think that's quite confusing. Let's rename it to something that sounds more like something that gets the parent hir id => `hir::Map::parent_id`. Same with `find_parent_node` => `opt_parent_id`. Also, combine `hir.get(hir.parent_id(hir_id))` and similar `hir.find(hir.parent_id(hir_id))` function into new functions that actually retrieve the parent node in one call. This last commit is the only one that might need to be looked at closely.
2023-01-04Rollup merge of #106385 - compiler-errors:new-solver-flag, r=jackh726Michael Goulet-1/+1
Split `-Zchalk` flag into `-Ztrait-solver=(classic|chalk|next)` flag We'll eventually need a way to select more than chalk + not-chalk. Does this need an MCP since it's touching a `-Z` flag? Or perhaps I should preserve `-Zchalk` for the time being... maybe I could make it a warning to use that flag? cc ``@rust-lang/types`` r? types
2023-01-04Update rand in the stdlib tests, and remove the getrandom feature from itThom Chiovoloni-1/+0
2023-01-04Rollup merge of #106460 - c410-f3r:moar-errors, r=compiler-errorsMatthias Krüger-1/+1
Move tests r? `@petrochenkov`
2023-01-04Move testsCaio-1/+1
2023-01-04Update tests, etcMichael Goulet-1/+1
2023-01-04Update cargoWeihang Lo-0/+14
8 commits in 2381cbdb4e9b07090f552d34a44a529b6e620e44..8c460b2237a6359a7e3335890db8da049bdd62fc 2022-12-23 12:19:27 +0000 to 2023-01-04 14:30:01 +0000 - test: revive nightly plugin tests to work (rust-lang/cargo#11534) - Add note to release notes about rejecting multiple registries. (rust-lang/cargo#11531) - Fix a typo `fresheness` -&gt; `freshness` (rust-lang/cargo#11529) - Reasons for rebuilding (rust-lang/cargo#11407) - Asymmetric tokens (rust-lang/cargo#10771) - Use proper git URL for GitHub repos (rust-lang/cargo#11517) - Add `registry.default` example (rust-lang/cargo#11516) - Support vendoring with different revs from same git repo (rust-lang/cargo#10690) Also update license exceptions and permitted dependencies for new cargo dependency "pasetors". A new dependency `getrandom` is added into `rustc-workspace-hacks`, since it requires feature `js`.