diff --git a/servo/components/selectors/matching.rs b/servo/components/selectors/matching.rs index c241d86cd41d..b2149230a637 100644 --- a/servo/components/selectors/matching.rs +++ b/servo/components/selectors/matching.rs @@ -316,12 +316,14 @@ where } } }, - _ => { + ref other => { debug_assert!( false, "Used MatchingMode::ForStatelessPseudoElement \ - in a non-pseudo selector" + in a non-pseudo selector {:?}", + other ); + return false; }, }