From 07cd3c8f4f2815557f994b17755886b18315d392 Mon Sep 17 00:00:00 2001 From: David Pedersen Date: Mon, 24 Apr 2023 15:38:38 +0200 Subject: [PATCH] Always panic in the router, to debug #1955 --- axum/src/routing/mod.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/axum/src/routing/mod.rs b/axum/src/routing/mod.rs index a1d8c715..4619b2df 100644 --- a/axum/src/routing/mod.rs +++ b/axum/src/routing/mod.rs @@ -306,6 +306,9 @@ where .remove::>() .map(|SuperFallback(path_router)| path_router.into_inner()); + // simulate hitting `unreachable!()` below + unreachable!(); + if let Some(mut super_fallback) = super_fallback { return super_fallback .call_with_state(req, state)