Skip to content

Commit c0a1a89

Browse files
authored
Merge pull request #1257 from nnethercote/add-html5ever-0.26.0
Add html5ever 0.26.0
2 parents 27adfc1 + 57f8476 commit c0a1a89

38 files changed

+9108
-0
lines changed

collector/benchmarks/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ They mostly consist of real-world crates.
2727
types.
2828
- **helloworld**: A trivial program. Gives a lower bound on compile time.
2929
- **html5ever**: An HTML parser. Stresses macro parsing code significantly.
30+
- **html5ever-0.26.0**: An HTML parser. Stresses macro parsing code.
3031
- **hyper-2**: A fairly large crate. Utilizes async/await, and used by
3132
many Rust programs.
3233
- **hyper-0.14.18**: A fairly large crate. Utilizes async/await, and used by
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"git": {
3+
"sha1": "84125752a4eeadbe5d6b02ae28784b2096a4c17f"
4+
},
5+
"path_in_vcs": "html5ever"
6+
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
diff --git a/src/util/str.rs b/src/util/str.rs
2+
index 756a88d2..2801f859 100644
3+
--- a/src/util/str.rs
4+
+++ b/src/util/str.rs
5+
@@ -10,6 +10,8 @@
6+
use std::fmt;
7+
8+
pub fn to_escaped_string<T: fmt::Debug>(x: &T) -> String {
9+
+ println!("testing");
10+
+
11+
// FIXME: don't allocate twice
12+
let string = format!("{:?}", x);
13+
string.chars().flat_map(|c| c.escape_default()).collect()

0 commit comments

Comments
 (0)