From 67fae7a2ce9fc15e8703a86504528dad41b6d48f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Sat, 27 Oct 2018 13:16:48 +0200 Subject: [PATCH] style: Assert earlier to try to get a more helpful stack. --- components/selectors/builder.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/selectors/builder.rs b/components/selectors/builder.rs index 33c0ec1b694..b17ed9bfc63 100644 --- a/components/selectors/builder.rs +++ b/components/selectors/builder.rs @@ -72,7 +72,7 @@ impl SelectorBuilder { /// Pushes a simple selector onto the current compound selector. #[inline(always)] pub fn push_simple_selector(&mut self, ss: Component) { - debug_assert!(!ss.is_combinator()); + assert!(!ss.is_combinator()); self.simple_selectors.push(ss); self.current_len += 1; }