mirror of
https://github.com/servo/servo.git
synced 2025-08-04 21:20:23 +01:00
style: Assert earlier to try to get a more helpful stack.
This commit is contained in:
parent
e7261d51e9
commit
67fae7a2ce
1 changed files with 1 additions and 1 deletions
|
@ -72,7 +72,7 @@ impl<Impl: SelectorImpl> SelectorBuilder<Impl> {
|
||||||
/// Pushes a simple selector onto the current compound selector.
|
/// Pushes a simple selector onto the current compound selector.
|
||||||
#[inline(always)]
|
#[inline(always)]
|
||||||
pub fn push_simple_selector(&mut self, ss: Component<Impl>) {
|
pub fn push_simple_selector(&mut self, ss: Component<Impl>) {
|
||||||
debug_assert!(!ss.is_combinator());
|
assert!(!ss.is_combinator());
|
||||||
self.simple_selectors.push(ss);
|
self.simple_selectors.push(ss);
|
||||||
self.current_len += 1;
|
self.current_len += 1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue