Skip to content

Commit 9425c43

Browse files
Update syn to 0.15
The update was fairly smooth. Note that this commit only updated the syn version and fixed all errors. So in case the new syn version introduced new features we could use -- this commit doesn't use those.
1 parent 4a28269 commit 9425c43

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ nightly = ["proc-macro2/nightly"]
3030
[dependencies]
3131
proc-macro2 = { version = "0.4.6" }
3232
quote = "0.6.3"
33-
syn = { version = "0.14.4", features = ["full", "visit-mut"] }
33+
syn = { version = "0.15", features = ["full", "visit", "visit-mut"] }
3434

3535
[dev-dependencies]
3636
build-plan = "0.1.1"

src/analyze.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ use std::collections::HashSet;
33
use proc_macro2::Span as Span2;
44
use syn::{
55
Ident, ItemTrait, Lifetime, Block,
6-
token::Apostrophe,
76
visit::{Visit, visit_item_trait},
87
};
98

@@ -89,7 +88,7 @@ crate fn find_suitable_param_names(trait_def: &ItemTrait) -> (Ident, Lifetime) {
8988
.find(|i| !visitor.lt_names.contains(i))
9089
.unwrap_or_else(|| Ident::new(PROXY_LT_PARAM_NAME, param_span()));
9190
let lt = Lifetime {
92-
apostrophe: Apostrophe::new(param_span()),
91+
apostrophe: param_span(),
9392
ident: lt_name,
9493
};
9594

0 commit comments

Comments
 (0)