diff options
| author | bors <bors@rust-lang.org> | 2022-06-27 19:42:09 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-06-27 19:42:09 +0000 |
| commit | 2f3ddd9f594adf9773547aa7cedb43c4ac8ffd2f (patch) | |
| tree | 0fe28cfb2f74835b9359f71b3d85420dcb2d09e0 /compiler/rustc_codegen_llvm/src/common.rs | |
| parent | 8e52fa87ebbe3ea2ad38b429292e4a22300188d7 (diff) | |
| parent | ec137f29c5812df6461095dbc5c62ce3fe4ebc01 (diff) | |
| download | rust-2f3ddd9f594adf9773547aa7cedb43c4ac8ffd2f.tar.gz rust-2f3ddd9f594adf9773547aa7cedb43c4ac8ffd2f.zip | |
Auto merge of #97307 - SparrowLii:parallel, r=cjgillot
catch unwind in parallel mode during wfcheck
Update #75760
When performing wfcheck, from the test results, the parallel mode will stop all checks when an `item`'s check failed, (e.g. the first ui test failure raised from [here](https://github.com/rust-lang/rust/blob/master/compiler/rustc_trait_selection/src/traits/error_reporting/mod.rs#L249))while the serial mode will output each `item`'s check result via `catch_unwind`. This leads to inconsistencies in the final output of the two mode.
In my local environment, this modification prevents the following ui tests from failing when set `parallel-compiler = true` in `config.toml`:
```
[ui] src/test\ui\associated-types\defaults-cyclic-fail-1.rs
[ui] src/test\ui\associated-types\defaults-cyclic-fail-2.rs
[ui] src/test\ui\associated-types\hr-associated-type-bound-2.rs
[ui] src/test\ui\associated-types\impl-wf-cycle-1.rs
[ui] src/test\ui\associated-types\impl-wf-cycle-2.rs
[ui] src/test\ui\issues\issue-20413.rs
[ui] src/test\ui\parallel_test\defaults-cyclic-fail-para.rs
```
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/common.rs')
0 files changed, 0 insertions, 0 deletions
