Skip to content

Commit 5ad42e4

Browse files
committed
Add extra pieces.
1 parent a63e517 commit 5ad42e4

File tree

4 files changed

+21
-0
lines changed

4 files changed

+21
-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,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 {:?}",

collector/compile-benchmarks/syn-2.0.101/Cargo.toml

+2
Original file line numberDiff line numberDiff line change
@@ -269,3 +269,5 @@ version = "0.4.16"
269269

270270
[target."cfg(not(miri))".dev-dependencies.walkdir]
271271
version = "2.3.2"
272+
273+
[workspace]

0 commit comments

Comments
 (0)