//! Shared downcast helper for the registration `Factory` blanket impls.
use Any;
/// Downcast a type-erased request payload to its concrete `XRequest<_>` type
/// and clone it out, producing a uniform error string on mismatch.
///
/// `label` is the trailing text of the error message, so the message reads
/// `Failed to downcast {label}` (matching the per-site wording, e.g.
/// `"query payload"` or `"report to ReportRequest<Foo>"`).
///
// NOTE(ts): only reached through the registration `Factory` blanket impls,
// which are monomorphized server-side only — on wasm the generic callers are
// never instantiated, so the fn reads as dead there.
pub
const _: fn = ;