Skip to content

Commit 9ce7287

Browse files
committed
Make sure consume_until_end_of_block is not inlined.
1 parent d92137c commit 9ce7287

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "cssparser"
3-
version = "0.19.5"
3+
version = "0.19.6"
44
authors = [ "Simon Sapin <simon.sapin@exyr.org>" ]
55

66
description = "Rust implementation of CSS Syntax Level 3"

src/parser.rs

+2
Original file line numberDiff line numberDiff line change
@@ -864,6 +864,8 @@ pub fn parse_nested_block<'i: 't, 't, F, T, E>(parser: &mut Parser<'i, 't>, pars
864864
result
865865
}
866866

867+
#[inline(never)]
868+
#[cold]
867869
fn consume_until_end_of_block(block_type: BlockType, tokenizer: &mut Tokenizer) {
868870
let mut stack = SmallVec::<[BlockType; 16]>::new();
869871
stack.push(block_type);

0 commit comments

Comments
 (0)