Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
f4b7735
Rename hir const arg walking functions
BoxyUwU Jun 17, 2025
c9264a1
Don't double visit `HirId`s of inferred const/types
BoxyUwU Jun 17, 2025
2411fba
Link to dev-guide docs
BoxyUwU Jun 18, 2025
fa5895e
Reviews
BoxyUwU Jun 25, 2025
19c6815
Multiple bounds checking elision failures
lucarlig Aug 1, 2025
ae2f8d9
Remove the omit_gdb_pretty_printer_section attribute
bjorn3 Jul 31, 2025
2f60cef
`Interner` arg to `EarlyBinder` does not affect auto traits
Veykril Aug 2, 2025
870b58f
Update E0562 to account for the new impl trait positions
Noratrieb Aug 2, 2025
40f587a
Flatten `hash_owner_nodes` with an early-return
Zalathar Aug 2, 2025
d3e597a
Return a struct with named fields from `hash_owner_nodes`
Zalathar Aug 2, 2025
f87e829
update flags for consistency
Kivooeo Aug 2, 2025
8ca7986
update links
Kivooeo Aug 2, 2025
9743573
cargo update
invalid-email-address Aug 3, 2025
2ddf0ca
Change `ProcRes::print_info` to `format_info`
Zalathar Aug 2, 2025
d1d44d4
Consolidate all `ProcRes` unwinds into one code path
Zalathar Aug 2, 2025
1063b0f
Change `TestCx::error` to `error_prefix`, which returns a string
Zalathar Aug 2, 2025
caa3cf1
explicit tail call tests with indirect operands in LLVM, small test f…
tnuha Aug 3, 2025
f6dcf30
Rollup merge of #142678 - BoxyUwU:gai_cleanup, r=nnethercote
samueltardieu Aug 3, 2025
4010404
Rollup merge of #144650 - Borgerr:additional-tce-tests, r=WaffleLapkin
samueltardieu Aug 3, 2025
e4985b1
Rollup merge of #144738 - bjorn3:remove_omit_gdb_pretty_printer_secti…
samueltardieu Aug 3, 2025
930a31f
Rollup merge of #144790 - lucarlig:pr-bounds-elision, r=compiler-errors
samueltardieu Aug 3, 2025
04463db
Rollup merge of #144805 - Zalathar:proc-res, r=jieyouxu
samueltardieu Aug 3, 2025
d4fa2b1
Rollup merge of #144808 - Veykril:push-uttkuyswqnzt, r=compiler-errors
samueltardieu Aug 3, 2025
1b08e83
Rollup merge of #144816 - Noratrieb:e0562-impl-trait, r=WaffleLapkin
samueltardieu Aug 3, 2025
4a4c157
Rollup merge of #144822 - Zalathar:hash-owner-nodes, r=compiler-errors
samueltardieu Aug 3, 2025
dc961ce
Rollup merge of #144824 - Kivooeo:update-links, r=Noratrieb
samueltardieu Aug 3, 2025
9a04f64
Rollup merge of #144829 - Kivooeo:strip-flag, r=WaffleLapkin
samueltardieu Aug 3, 2025
ba2c7ba
Rollup merge of #144843 - rust-lang:cargo_update, r=clubby789
samueltardieu Aug 3, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Change ProcRes::print_info to format_info
This method now returns a string instead of printing directly to
(possibly-captured) stdout.
  • Loading branch information
Zalathar committed Aug 3, 2025
commit 2ddf0ca9f5402ce6a710d35a5beb2067201ff23d
9 changes: 5 additions & 4 deletions src/tools/compiletest/src/runtest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2957,7 +2957,8 @@ pub struct ProcRes {
}

impl ProcRes {
pub fn print_info(&self) {
#[must_use]
pub fn format_info(&self) -> String {
fn render(name: &str, contents: &str) -> String {
let contents = json::extract_rendered(contents);
let contents = contents.trim_end();
Expand All @@ -2973,20 +2974,20 @@ impl ProcRes {
}
}

println!(
format!(
"status: {}\ncommand: {}\n{}\n{}\n",
self.status,
self.cmdline,
render("stdout", &self.stdout),
render("stderr", &self.stderr),
);
)
}

pub fn fatal(&self, err: Option<&str>, on_failure: impl FnOnce()) -> ! {
if let Some(e) = err {
println!("\nerror: {}", e);
}
self.print_info();
println!("{}", self.format_info());
on_failure();
// Use resume_unwind instead of panic!() to prevent a panic message + backtrace from
// compiletest, which is unnecessary noise.
Expand Down
2 changes: 1 addition & 1 deletion src/tools/compiletest/src/runtest/rustdoc_json.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ impl TestCx<'_> {
if !res.status.success() {
self.fatal_proc_rec_with_ctx("jsondocck failed!", &res, |_| {
println!("Rustdoc Output:");
proc_res.print_info();
println!("{}", proc_res.format_info());
})
}

Expand Down