about summary refs log tree commit diff
path: root/src/tools
AgeCommit message (Collapse)AuthorLines
2023-07-01Update cargoWeihang Lo-0/+0
2023-07-01Merge commit 'dca1cf90ad6b8e45afbed2061803befbb2d159e9' into sync-rustfmtCaleb Cartwright-49/+1081
2023-07-01Rollup merge of #113189 - Zalathar:trim-end, r=ozkanonurMatthias Krüger-1/+1
compiletest: Only trim the end of process output As of #94196, compiletest automatically trims process stderr/stdout output before printing it, to make failure info more compact. This causes the first line of `run-coverage` output to be displayed incorrectly, because it uses leading whitespace to align line numbers. Trimming only the end of the output string should still have the intended effect (e.g. removing trailing newlines), without causing problems for output that deliberately uses leading whitespace on the first line. ## Before ``` --- stdout ------------------------------- 1| 1|fn main() { // 2| 1| let num = 9; 3| 1| while num >= 10 { 4| 0| } 5| 1|} ------------------------------------------ stderr: none ``` ## After ``` --- stdout ------------------------------- 1| 1|fn main() { // 2| 1| let num = 9; 3| 1| while num >= 10 { 4| 0| } 5| 1|} ------------------------------------------ stderr: none ```
2023-06-30fix loading target specs in compiletest not working with custom targetsPietro Albini-1/+13
2023-06-30compiletest: Only trim the end of process outputZalathar-1/+1
2023-06-29Rollup merge of #112300 - Zalathar:run-coverage, r=wesleywiserMatthias Krüger-26/+376
Convert `run-make/coverage-reports` tests to use a custom compiletest mode I was frustrated by the fact that most of the coverage tests are glued together with makefiles and shell scripts, so I tried my hand at converting most of them over to a newly-implemented `run-coverage` mode/suite in compiletest. This ~~*mostly*~~ resolves #85009, ~~though I've left a small number of the existing tests as-is because they would require more work to fix/support~~. --- I had time to go back and add support for the more troublesome tests that I had initially skipped over, so this PR now manages to completely get rid of `run-make/coverage-reports`. --- The patches are arranged as follows: - Declare the new mode/suite in bootstrap - Small changes to compiletest that will be used by the new mode - Implement the new mode in compiletest - Migrate most of the tests over - Add more code to bootstrap and compiletest to support the remaining tests - Migrate the remaining tests (with some temporary hacks to avoid re-blessing them) - Remove the temporary hacks and re-bless the migrated tests - Remove the unused remnants of `run-make/coverage-reports`
2023-06-29Use a valid `target` directory in miri ui testsOli Scherer-0/+1
2023-06-29Auto merge of #2947 - oli-obk:gha_mk_pr, r=RalfJungbors-0/+3
Try to fix cronjob PR creation The main tests use `bash` several times, maybe that is the issue here, too?
2023-06-29Checking for a cached value without having a cache is uselessOli Scherer-4/+1
2023-06-29Bashy Mc BashfaceOli Scherer-0/+6
2023-06-29Merge from rustcRalf Jung-24/+23
2023-06-29Preparing for merge from rustcRalf Jung-1/+1
2023-06-28Auto merge of #2936 - Vanille-N:unique, r=RalfJungbors-39/+524
Optional semantics for `Unique` Use with `-Zmiri-unique-is-unique`, makes `core::ptr::Unique` get a reborrow with its own permissions.
2023-06-28Unique gets special treatment when -Zmiri-unique-is-uniqueNeven Villani-13/+486
2023-06-28Auto merge of #2945 - oli-obk:gha_mk_pr, r=RalfJungbors-1/+25
Try running a sync automatically absolutely no clue if this works, but it happens after the zulip message, so worst case we'll see the failure after the cron job did everything it currently does.
2023-06-28Try running a sync automaticallyOli Scherer-1/+25
2023-06-28Rollup merge of #111571 - jhpratt:proc-macro-span, r=m-ou-seDylan DPC-24/+23
Implement proposed API for `proc_macro_span` As proposed in [#54725 (comment)](https://github.com/rust-lang/rust/issues/54725#issuecomment-1546918161). I have omitted the byte-level API as it's already available as [`Span::byte_range`](https://doc.rust-lang.org/nightly/proc_macro/struct.Span.html#method.byte_range). `@rustbot` label +A-proc-macros r? `@m-ou-se`
2023-06-28fmtOli Scherer-2/+2
2023-06-28Merge from rustcOli Scherer-218/+155
2023-06-28Preparing for merge from rustcOli Scherer-1/+1
2023-06-28Remove the old `coverage-reports` and `coverage` directoriesZalathar-1/+1
2023-06-28Re-bless the newly-migrated testsZalathar-12/+0
2023-06-28Migrate the remaining `run-make/coverage-reports` tests over to `run-coverage`Zalathar-0/+12
To make it easier to verify that the output snapshots have been migrated faithfully, this change adds some temporary helper code that lets us avoid having to completely re-bless the existing snapshots. A later change in this PR will then re-bless the tests and remove the temporary helper code.
2023-06-28Expand `run-coverage` to support the remaining `coverage-reports` testsZalathar-3/+115
2023-06-28Add a custom `run-coverage` mode to compiletestZalathar-3/+232
2023-06-28Move the `RUSTC_PROFILER_SUPPORT` check into `CachedNeedsConditions`Zalathar-1/+3
2023-06-28Remember whether `failure-status` was explicitly specifiedZalathar-8/+5
Currently a test without a `failure-status` directive is treated as having an expected failure-status of 1, but `run-coverage` tests will want to treat those tests as expecting success instead.
2023-06-28Introduce `exec_compiled_test_general`Zalathar-1/+12
This will allow the `run-coverage` mode to easily set environment variable `LLVM_PROFILE_FILE`, and to prevent the executable from being deleted after a successful run.
2023-06-28Extract a common function for setting up environment varsZalathar-13/+12
2023-06-27Rollup merge of #112692 - jieyouxu:better-err-msg-for-unstable-options, ↵Matthias Krüger-13/+23
r=davidtwco Provide more context for `rustc +nightly -Zunstable-options` on stable <img width="724" alt="Screenshot 2023-06-16 123456" src="https://github.com/rust-lang/rust/assets/39484203/1933e172-cb9f-4e51-9540-ade803a88360"> Closes #110090.
2023-06-27Rollup merge of #112454 - ferrocene:pa-compiletest-dynamic-linking, r=davidtwcoMatthias Krüger-65/+32
Make compiletest aware of targets without dynamic linking Some parts of the compiletest internals and some tests require dynamic linking to work, which is not supported by all targets. Before this PR, this was handled by if branches matching on the target name. This PR loads whether a target supports dynamic linking or not from the target spec, and adds a `// needs-dynamic-linking` attribute for tests that require it. Note that I was not able to replace all the old conditions based on the target name, as some targets have `dynamic_linking: true` in their spec but pretend they don't have it in compiletest. Also, to get this to work I had to *partially* revert #111472 (cc `@djkoloski` `@tmandry` `@bjorn3).` On one hand, only the target spec contains whether a target supports dynamic linking, but on the other hand a subset of the fields can be overridden through `-C` flags (as far as I'm aware only `-C panic=$strategy`). The solution I came up with is to take the target spec as the base, and then override the panic strategy based on `--print=cfg`. Hopefully that should not break y'all again.
2023-06-27Provide more context for `rustc +nightly -Zunstable-options` on stable许杰友 Jieyou Xu (Joe)-13/+23
2023-06-27Add trophyAndy Wang-0/+1
Appears to have been missed
2023-06-27Make `--quiet` actually do somethingOli Scherer-6/+13
2023-06-26Migrate predicates_of and caller_bounds to ClauseMichael Goulet-59/+30
2023-06-26Auto merge of #112887 - WaffleLapkin:become_unuwuable_in_hir, ↵bors-1/+19
r=compiler-errors,Nilstrieb `hir`: Add `Become` expression kind (explicit tail calls experiment) This adds `hir::ExprKind::Become` alongside ast lowering. During hir-thir lowering we currently lower `become` as `return`, so that we can partially test `become` without ICEing. cc `@scottmcm` r? `@Nilstrieb`
2023-06-26Make simd_shuffle_indices use valtreesOli Scherer-14/+62
2023-06-26Support `hir::ExprKind::Become` in clippyMaybe Waffle-0/+18
2023-06-26`hir`: Add `Become` expression kindMaybe Waffle-1/+1
2023-06-26Update ui test crateOli Scherer-72/+36
2023-06-26Auto merge of #112884 - klensy:ri-drop-old-clap, r=albertlarsan68bors-47/+47
rust-installer: migrate to clap 4.2, change to 2021 edition and fix few clippy lints Updated rust-installer to clap 4.2, dropping last user of clap v3; changes to 2021 edition, fixes few clippy warns.
2023-06-25Auto merge of #113001 - ChrisDenton:win-arm32-shim, r=thomccbors-24/+0
Move windows-sys arm32 shim to c.rs This moves the arm32 shim in to c.rs instead of appending to the generated file itself. This makes it simpler to change these workarounds if/when needed. The downside is we need to exclude a couple of functions from being generated (see the comment). A metadata solution could help here but they'll be easy enough to add back if that happens.
2023-06-25Auto merge of #112476 - chenyukang:yukang-fix-109991, r=compiler-errorsbors-5/+0
Do not emit coerce_suggestions for expr from destructuring assignment desugaring Fixes #109991
2023-06-25Do not offer any of the suggestions in emit_coerce_suggestions for expr from ↵yukang-5/+0
destructuring assignment desugaring
2023-06-24give more helpful suggestions for a missing feature gate testjyn-4/+4
2023-06-24Move arm32 shim to c.rsChris Denton-24/+0
2023-06-24Update cargoWeihang Lo-0/+0
2023-06-23Rollup merge of #112962 - GuillaumeGomez:fix-rustdoc-gui-tester, r=ozkanonurMatthias Krüger-11/+18
Fix rustdoc gui tester Problem was that the `main` was always exiting with `0`, whether or not there was an error. It led to failing GUI tests being ignored in the CI since no one saw them. r? ````@klensy````
2023-06-23Make `try_run` return a `Result<(), ()>` instead of a booleanGuillaume Gomez-10/+14
2023-06-23Fix rustdoc-gui testerGuillaume Gomez-3/+6