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