Skip to content

compiletest: Preliminary cleanup of ProcRes printing/unwinding - #144805

Merged
bors merged 3 commits into
rust-lang:masterfrom
Zalathar:proc-res
Aug 4, 2025
Merged

compiletest: Preliminary cleanup of ProcRes printing/unwinding#144805
bors merged 3 commits into
rust-lang:masterfrom
Zalathar:proc-res

Conversation

@Zalathar

Copy link
Copy Markdown
Member

While experimenting with changes to how compiletest handles output capture, error reporting, and unwinding, I repeatedly ran in to difficulties with this core code for reporting test failures caused by a subprocess.

There should be no change in compiletest output.

r? jieyouxu

@rustbot

Copy link
Copy Markdown
Collaborator

jieyouxu is currently at their maximum review capacity.
They may take a while to respond.

@rustbotrustbot added A-compiletest Area: The compiletest test runner A-testsuite Area: The testsuite used to check the correctness of rustc S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) labels Aug 2, 2025
@rustbot

Copy link
Copy Markdown
Collaborator

Some changes occurred in src/tools/compiletest

cc @jieyouxu

@jieyouxujieyouxu left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

@jieyouxu

Copy link
Copy Markdown
Member

@bors r+ rollup

@bors

bors commented Aug 2, 2025

Copy link
Copy Markdown
Collaborator

📌 Commit b178525 has been approved by jieyouxu

It is now in the queue for this repository.

@borsbors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Aug 2, 2025
@jieyouxu

Copy link
Copy Markdown
Member

Unfortunately this probably conflicts with #144747, feel free to r=me after rebase.

bors added a commit that referenced this pull request Aug 2, 2025
Rollup of 18 pull requests
Successful merges:
- #132748 (get rid of some false negatives in rustdoc::broken_intra_doc_links)
- #135771 ([rustdoc] Add support for associated items in "jump to def" feature)
- #143360 (loop match: error on `#[const_continue]` outside `#[loop_match]`)
- #143662 ([rustdoc] Display unsafe attrs with edition 2024 `unsafe()` wrappers.)
- #143771 (Constify some more `Result` functions)
- #143900 ([rustdoc] Correctly handle `should_panic` doctest attribute and fix `--no-run` test flag on the 2024 edition)
- #144185 (Document guarantees of poisoning)
- #144395 (update fortanix tests)
- #144478 (Improve formatting of doc code blocks)
- #144614 (Fortify RemoveUnneededDrops test.)
- #144703 ([test][AIX] ignore extern_weak linkage test)
- #144747 (compiletest: Improve diagnostics for line annotation mismatches 2)
- #144756 (detect infinite recursion with tail calls in ctfe)
- #144766 (Add human readable name "Cygwin")
- #144782 (Properly pass path to staged `rustc` to `compiletest` self-tests)
- #144786 (Cleanup the definition of `group_type`)
- #144796 (Add my previous commit name to .mailmap)
- #144797 (Update safety comment for new_unchecked in niche_types)
Failed merges:
- #144805 (compiletest: Preliminary cleanup of `ProcRes` printing/unwinding)
r? `@ghost`
`@rustbot` modify labels: rollup
This method now returns a string instead of printing directly to
(possibly-captured) stdout.
This reduces the amount of "hidden" printing in error-reporting code, which
will be helpful when overhauling compiletest's error handling and output
capture.
@Zalathar

Copy link
Copy Markdown
MemberAuthor

Rebased to resolve conflicts with #144747.

@bors r=jieyouxu

@bors

bors commented Aug 3, 2025

Copy link
Copy Markdown
Collaborator

📌 Commit 1063b0f has been approved by jieyouxu

It is now in the queue for this repository.

Zalathar added a commit to Zalathar/rust that referenced this pull request Aug 3, 2025
compiletest: Preliminary cleanup of `ProcRes` printing/unwinding
While experimenting with changes to how compiletest handles output capture, error reporting, and unwinding, I repeatedly ran in to difficulties with this core code for reporting test failures caused by a subprocess.
There should be no change in compiletest output.
r? jieyouxu
@ZalatharZalathar mentioned this pull request Aug 3, 2025
bors added a commit that referenced this pull request Aug 3, 2025
Rollup of 13 pull requests
Successful merges:
- #143857 (Port #[macro_export] to the new attribute parsing infrastructure)
- #144070 (Implement `hash_map` macro )
- #144322 (Add lint against dangling pointers from local variables)
- #144667 (`AlignmentEnum` should just be `repr(usize)` now)
- #144678 (Make no_mangle on foreign items explicit instead of implicit)
- #144790 (Multiple bounds checking elision failures)
- #144794 (Port `#[coroutine]` to the new attribute system)
- #144805 (compiletest: Preliminary cleanup of `ProcRes` printing/unwinding)
- #144808 (`Interner` arg to `EarlyBinder` does not affect auto traits)
- #144816 (Update E0562 to account for the new impl trait positions)
- #144822 (Return a struct with named fields from `hash_owner_nodes`)
- #144824 (Updated test links in compiler)
- #144829 (Use full flag name in strip command for Darwin)
r? `@ghost`
`@rustbot` modify labels: rollup
Zalathar added a commit to Zalathar/rust that referenced this pull request Aug 3, 2025
compiletest: Preliminary cleanup of `ProcRes` printing/unwinding
While experimenting with changes to how compiletest handles output capture, error reporting, and unwinding, I repeatedly ran in to difficulties with this core code for reporting test failures caused by a subprocess.
There should be no change in compiletest output.
r? jieyouxu
@ZalatharZalathar mentioned this pull request Aug 3, 2025
bors added a commit that referenced this pull request Aug 3, 2025
Rollup of 13 pull requests
Successful merges:
- #143857 (Port #[macro_export] to the new attribute parsing infrastructure)
- #144070 (Implement `hash_map` macro )
- #144322 (Add lint against dangling pointers from local variables)
- #144667 (`AlignmentEnum` should just be `repr(usize)` now)
- #144706 (Do not give function allocations alignment in consteval and Miri.)
- #144790 (Multiple bounds checking elision failures)
- #144794 (Port `#[coroutine]` to the new attribute system)
- #144805 (compiletest: Preliminary cleanup of `ProcRes` printing/unwinding)
- #144808 (`Interner` arg to `EarlyBinder` does not affect auto traits)
- #144816 (Update E0562 to account for the new impl trait positions)
- #144822 (Return a struct with named fields from `hash_owner_nodes`)
- #144824 (Updated test links in compiler)
- #144829 (Use full flag name in strip command for Darwin)
r? `@ghost`
`@rustbot` modify labels: rollup
samueltardieu added a commit to samueltardieu/rust that referenced this pull request Aug 3, 2025
compiletest: Preliminary cleanup of `ProcRes` printing/unwinding
While experimenting with changes to how compiletest handles output capture, error reporting, and unwinding, I repeatedly ran in to difficulties with this core code for reporting test failures caused by a subprocess.
There should be no change in compiletest output.
r? jieyouxu
samueltardieu added a commit to samueltardieu/rust that referenced this pull request Aug 3, 2025
compiletest: Preliminary cleanup of `ProcRes` printing/unwinding
While experimenting with changes to how compiletest handles output capture, error reporting, and unwinding, I repeatedly ran in to difficulties with this core code for reporting test failures caused by a subprocess.
There should be no change in compiletest output.
r? jieyouxu
bors added a commit that referenced this pull request Aug 3, 2025
Rollup of 11 pull requests
Successful merges:
- #142678 (Misc cleanups of `generic_arg_infer` related HIR logic)
- #144650 (Additional tce tests)
- #144738 (Remove the omit_gdb_pretty_printer_section attribute)
- #144790 (Multiple bounds checking elision failures)
- #144805 (compiletest: Preliminary cleanup of `ProcRes` printing/unwinding)
- #144808 (`Interner` arg to `EarlyBinder` does not affect auto traits)
- #144816 (Update E0562 to account for the new impl trait positions)
- #144822 (Return a struct with named fields from `hash_owner_nodes`)
- #144824 (Updated test links in compiler)
- #144829 (Use full flag name in strip command for Darwin)
- #144843 (Weekly `cargo update`)
Failed merges:
- #144794 (Port `#[coroutine]` to the new attribute system)
r? `@ghost`
`@rustbot` modify labels: rollup
samueltardieu added a commit to samueltardieu/rust that referenced this pull request Aug 3, 2025
compiletest: Preliminary cleanup of `ProcRes` printing/unwinding
While experimenting with changes to how compiletest handles output capture, error reporting, and unwinding, I repeatedly ran in to difficulties with this core code for reporting test failures caused by a subprocess.
There should be no change in compiletest output.
r? jieyouxu
This was referenced Aug 3, 2025
bors added a commit that referenced this pull request Aug 3, 2025
Rollup of 12 pull requests
Successful merges:
- #142678 (Misc cleanups of `generic_arg_infer` related HIR logic)
- #144070 (Implement `hash_map` macro )
- #144738 (Remove the omit_gdb_pretty_printer_section attribute)
- #144790 (Multiple bounds checking elision failures)
- #144805 (compiletest: Preliminary cleanup of `ProcRes` printing/unwinding)
- #144808 (`Interner` arg to `EarlyBinder` does not affect auto traits)
- #144816 (Update E0562 to account for the new impl trait positions)
- #144822 (Return a struct with named fields from `hash_owner_nodes`)
- #144824 (Updated test links in compiler)
- #144829 (Use full flag name in strip command for Darwin)
- #144843 (Weekly `cargo update`)
- #144851 (Forbid tail calling intrinsics)
r? `@ghost`
`@rustbot` modify labels: rollup
@bors
bors merged commit 84b6025 into rust-lang:masterAug 4, 2025
10 checks passed
@rustbotrustbot added this to the 1.91.0 milestone Aug 4, 2025
rust-timer added a commit that referenced this pull request Aug 4, 2025
Rollup merge of #144805 - Zalathar:proc-res, r=jieyouxu
compiletest: Preliminary cleanup of `ProcRes` printing/unwinding
While experimenting with changes to how compiletest handles output capture, error reporting, and unwinding, I repeatedly ran in to difficulties with this core code for reporting test failures caused by a subprocess.
There should be no change in compiletest output.
r? jieyouxu
@Zalathar
Zalathar deleted the proc-res branch August 4, 2025 01:27
github-actionsBot pushed a commit to rust-lang/rustc-dev-guide that referenced this pull request Aug 4, 2025
Rollup of 12 pull requests
Successful merges:
- rust-lang/rust#142678 (Misc cleanups of `generic_arg_infer` related HIR logic)
- rust-lang/rust#144070 (Implement `hash_map` macro )
- rust-lang/rust#144738 (Remove the omit_gdb_pretty_printer_section attribute)
- rust-lang/rust#144790 (Multiple bounds checking elision failures)
- rust-lang/rust#144805 (compiletest: Preliminary cleanup of `ProcRes` printing/unwinding)
- rust-lang/rust#144808 (`Interner` arg to `EarlyBinder` does not affect auto traits)
- rust-lang/rust#144816 (Update E0562 to account for the new impl trait positions)
- rust-lang/rust#144822 (Return a struct with named fields from `hash_owner_nodes`)
- rust-lang/rust#144824 (Updated test links in compiler)
- rust-lang/rust#144829 (Use full flag name in strip command for Darwin)
- rust-lang/rust#144843 (Weekly `cargo update`)
- rust-lang/rust#144851 (Forbid tail calling intrinsics)
r? `@ghost`
`@rustbot` modify labels: rollup
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-compiletestArea: The compiletest test runnerA-testsuiteArea: The testsuite used to check the correctness of rustcS-waiting-on-borsStatus: Waiting on bors to run and complete tests. Bors will change the label on completion.T-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@Zalathar@rustbot@jieyouxu@bors