Skip to content

Commit 0fedb67

Browse files
committed
Add syn-1.0.89 additional scaffolding
Timings: *syn: * check: 1.64s * build: 1.91s * build --release: 2.87s * syn-1.0.89 (full/final): * check: 1.97s/1.22s * build: 2.89s/2.01s * build --release: 4.65s/3.99s
1 parent 1d37505 commit 0fedb67

File tree

3 files changed

+16
-2
lines changed

3 files changed

+16
-2
lines changed

collector/benchmarks/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ They mostly consist of real-world crates.
4040
- **serde**: A serialization/deserialization crate. Used by many other
4141
Rust programs.
4242
- **stm32f4**: A crate that has many thousands of blanket impl blocks.
43-
- **syn**: A library for parsing Rust code. An important part of the Rust
43+
- **syn-1.0.89**: A library for parsing Rust code. An important part of the Rust
4444
ecosystem.
4545
- **unicode_normalization**: Unicode character composition and decomposition
4646
utilities. Uses huge `match` statements that stress the compiler in unusual
@@ -141,6 +141,6 @@ Rust code being written today.
141141
- **piston-image**: See above.
142142
- **style-servo**: An old version of Servo's `style` crate. A large crate, and
143143
one used by old versions of Firefox.
144-
- **syn**: See above.
144+
- **syn**: See above. This is an older version (0.11.11) of the crate.
145145
- **tokio-webpush-simple**: A simple web server built with a very old version
146146
of tokio. Uses futures a lot, but doesn't use `async`/`await`.
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 {:?}",

collector/benchmarks/syn-1.0.89/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,3 +135,5 @@ proc-macro = [
135135
test = ["syn-test-suite/all-features"]
136136
visit = []
137137
visit-mut = []
138+
139+
[workspace]

0 commit comments

Comments
 (0)