Skip to content

Commit f1b7135

Browse files
authored
Merge pull request #2094 from nnethercote/add-syn
Add `syn-2.0.101` benchmark
2 parents fdb06ed + 5ad42e4 commit f1b7135

Some content is hidden

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

108 files changed

+67737
-0
lines changed

collector/compile-benchmarks/README.md

+2
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ They mostly consist of real-world crates.
5353
built with `--features=stm32f410` to have faster benchmarking times.
5454
- **syn-1.0.89**: A library for parsing Rust code. An important part of the Rust
5555
ecosystem.
56+
- **syn-2.0.101**: A library for parsing Rust code. An important part of the Rust
57+
ecosystem.
5658
- **typenum-1.17.0**: A library that encodes integer computation within the trait system. Serves as
5759
a stress test for the trait solver, but at the same time it is also a very popular crate.
5860
- **typenum-1.18.0**: A library that encodes integer computation within the trait system. Serves as

collector/compile-benchmarks/REUSE.toml

+5
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,11 @@ path = "syn-1.0.89/**"
240240
SPDX-FileCopyrightText = "syn contributors"
241241
SPDX-License-Identifier = "MIT OR Apache-2.0"
242242

243+
[[annotations]]
244+
path = "syn-2.0.101/**"
245+
SPDX-FileCopyrightText = "syn contributors"
246+
SPDX-License-Identifier = "MIT OR Apache-2.0"
247+
243248
[[annotations]]
244249
path = "token-stream-stress/**"
245250
SPDX-FileCopyrightText = "The Rust Project Developers (see https://thanks.rust-lang.org)"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"git": {
3+
"sha1": "58336a3fb49b63aae0ae2e708a69167543ff0e97"
4+
},
5+
"path_in_vcs": ""
6+
}
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 cc189d1a..6a1c6ebb 100644
3+
--- a/src/lifetime.rs
4+
+++ b/src/lifetime.rs
5+
@@ -36,6 +36,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)