Skip to content

Commit cf072f3

Browse files
authored
Merge pull request #1240 from rylev/add-syn-1.0.89-benchmark
Add `syn-1.0.89` benchmark
2 parents 680d1d9 + 82004a6 commit cf072f3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

101 files changed

+58425
-2
lines changed

collector/benchmarks/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ They mostly consist of real-world crates.
4444
Rust programs.
4545
- **stm32f4**: A crate that has many thousands of blanket impl blocks.
4646
- **stm32f4-0.14.0**: A crate that has many thousands of blanket impl blocks.
47-
- **syn**: A library for parsing Rust code. An important part of the Rust
47+
- **syn-1.0.89**: A library for parsing Rust code. An important part of the Rust
4848
ecosystem.
4949
- **unicode_normalization**: Unicode character composition and decomposition
5050
utilities. Uses huge `match` statements that stress the compiler in unusual
@@ -146,6 +146,6 @@ Rust code being written today.
146146
- **piston-image**: See above. This is an older version of the `image` crate.
147147
- **style-servo**: An old version of Servo's `style` crate. A large crate, and
148148
one used by old versions of Firefox.
149-
- **syn**: See above.
149+
- **syn**: See above. This is an older version (0.11.11) of the crate.
150150
- **tokio-webpush-simple**: A simple web server built with a very old version
151151
of tokio. Uses futures a lot, but doesn't use `async`/`await`.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"git": {
3+
"sha1": "8d4eb4c597389b023b779621d8879641621d44e5"
4+
},
5+
"path_in_vcs": ""
6+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
diff --git a/src/lifetime.rs b/src/lifetime.rs
2+
index 5dc1753a..61f28dde 100644
3+
--- a/src/lifetime.rs
4+
+++ b/src/lifetime.rs
5+
@@ -37,6 +37,7 @@ impl Lifetime {
6+
/// # }
7+
/// ```
8+
pub fn new(symbol: &str, span: Span) -> Self {
9+
+ println!("testing");
10+
if !symbol.starts_with('\'') {
11+
panic!(
12+
"lifetime name must start with apostrophe as in \"'a\", got {:?}",

0 commit comments

Comments
 (0)