From 6ef92ff113b69dd530be4a33fbae45a71dc0f8d4 Mon Sep 17 00:00:00 2001 From: ldm0 Date: Wed, 7 Oct 2026 16:41:27 +0800 Subject: [PATCH] test(fetch): accept stable and nightly owner panic frame formats --- moli-fetch/src/tests/mod.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/moli-fetch/src/tests/mod.rs b/moli-fetch/src/tests/mod.rs index 854d19d88f..ed45431f69 100644 --- a/moli-fetch/src/tests/mod.rs +++ b/moli-fetch/src/tests/mod.rs @@ -6222,8 +6222,13 @@ fn fetch_runtime_owner_panic_returns_payload_and_identity_and_other_owners_still .backtrace() .expect("semantic owner panic must retain its panic-site backtrace"); assert!(!backtrace.trim().is_empty()); + // Toolchains can demangle inherent methods as Type::method or ::method. + // Require the same fully qualified owner and method in a single frame. assert!( - backtrace.contains("RuntimeOwner::handle_command"), + backtrace.lines().any(|frame| { + frame.contains("moli_fetch::runtime::RuntimeOwner::handle_command") + || frame.contains("::handle_command") + }), "panic backtrace should identify the semantic owner command boundary: {backtrace}" ); assert_eq!(