From 236daa7ebc566d783f2d3dfa422d3c61641f9fb7 Mon Sep 17 00:00:00 2001 From: "Tim (Theemathas Chirananthavat)" Date: Fri, 25 Sep 2026 18:41:16 +0700 Subject: [PATCH] Test `#[track_caller]` in async on gcc backend Previously, in https://github.com/rust-lang/rust/pull/161972, this test was skipped on gcc, due to a bug in rustc_codegen_gcc. The bug was fixed by the subtree update at https://github.com/rust-lang/rust/pull/162499. --- tests/ui/async-await/track-caller/panic-track-caller.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/ui/async-await/track-caller/panic-track-caller.rs b/tests/ui/async-await/track-caller/panic-track-caller.rs index 294150500170d..0cb3685398cdc 100644 --- a/tests/ui/async-await/track-caller/panic-track-caller.rs +++ b/tests/ui/async-await/track-caller/panic-track-caller.rs @@ -1,13 +1,13 @@ // This test is duplicated (with changes) at // src/tools/miri/tests/pass/async-panic-track-caller.rs -// FIXME: catch_unwind is broken in gcc. Will be fixed in the next rustc_codegen_gcc sync. -//@ ignore-backends: gcc //@ run-pass //@ edition:2021 //@ revisions: afn cls afn_cls nofeat //@ needs-unwind // gate-test-async_fn_track_caller +// +// Padding comment so that the line numbers are the same as async-panic-track-caller.rs #![feature(stmt_expr_attributes)] #![cfg_attr(any(afn, afn_cls), feature(async_fn_track_caller))] #![cfg_attr(any(cls, afn_cls), feature(closure_track_caller))]