Skip to content

Commit 7801fd1

Browse files
authored
Merge pull request #2069 from Kobzol/update-html5ever
Update html5ever to 0.31.0
2 parents 52a2cc1 + b42fa75 commit 7801fd1

38 files changed

+8913
-0
lines changed

collector/compile-benchmarks/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ They mostly consist of real-world crates.
3535
crate.
3636
- **helloworld**: A trivial program. Gives a lower bound on compile time.
3737
- **html5ever-0.26.0**: An HTML parser. Stresses macro parsing code.
38+
- **html5ever-0.31.0**: An HTML parser. Stresses macro parsing code.
3839
- **hyper-0.14.18**: A fairly large crate. Utilizes async/await, and used by
3940
many Rust programs. The crate uses cargo features to enable large portions of its
4041
structure and is built with `--features=client,http1,http2,server,stream`.

collector/compile-benchmarks/REUSE.toml

+5
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,11 @@ path = "html5ever-0.26.0/**"
115115
SPDX-FileCopyrightText = "The html5ever Project Developers"
116116
SPDX-License-Identifier = "MIT OR Apache-2.0"
117117

118+
[[annotations]]
119+
path = "html5ever-0.31.0/**"
120+
SPDX-FileCopyrightText = "The html5ever Project Developers"
121+
SPDX-License-Identifier = "MIT OR Apache-2.0"
122+
118123
[[annotations]]
119124
path = "hyper-0.14.18/**"
120125
SPDX-FileCopyrightText = "hyper contributors"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"git": {
3+
"sha1": "ce481196ff2e60eb536d9c022f4ca00bd5181f15"
4+
},
5+
"path_in_vcs": "html5ever"
6+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
diff --git a/src/util/str.rs b/src/util/str.rs
2+
index 2c0ec3e2..a78ff669 100644
3+
--- a/src/util/str.rs
4+
+++ b/src/util/str.rs
5+
@@ -10,6 +10,7 @@
6+
use std::fmt;
7+
8+
pub(crate) fn to_escaped_string<T: fmt::Debug>(x: &T) -> String {
9+
+ println!("testing");
10+
// FIXME: don't allocate twice
11+
let string = format!("{x:?}");
12+
string.chars().flat_map(|c| c.escape_default()).collect()

0 commit comments

Comments
 (0)