Skip to content

Commit 82004a6

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 b687a21 commit 82004a6

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
@@ -41,7 +41,7 @@ They mostly consist of real-world crates.
4141
Rust programs.
4242
- **stm32f4**: A crate that has many thousands of blanket impl blocks.
4343
- **stm32f4-0.14.0**: A crate that has many thousands of blanket impl blocks.
44-
- **syn**: A library for parsing Rust code. An important part of the Rust
44+
- **syn-1.0.89**: A library for parsing Rust code. An important part of the Rust
4545
ecosystem.
4646
- **unicode_normalization**: Unicode character composition and decomposition
4747
utilities. Uses huge `match` statements that stress the compiler in unusual
@@ -143,6 +143,6 @@ Rust code being written today.
143143
- **piston-image**: See above.
144144
- **style-servo**: An old version of Servo's `style` crate. A large crate, and
145145
one used by old versions of Firefox.
146-
- **syn**: See above.
146+
- **syn**: See above. This is an older version (0.11.11) of the crate.
147147
- **tokio-webpush-simple**: A simple web server built with a very old version
148148
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)