Skip to content

Commit dfd5da0

Browse files
committed
testsuite/minitest/syn: 1.0.80 -> 2.0.68
1 parent 6eec6ad commit dfd5da0

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

testsuite/minitest/macros/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ rtt = []
1414
[dependencies]
1515
proc-macro2 = "1.0.29"
1616
quote = "1.0.10"
17-
syn = { version = "1.0.80", features = ["extra-traits", "full"] }
17+
syn = { version = "2.0.68", features = ["extra-traits", "full"] }

testsuite/minitest/macros/src/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,13 @@ fn tests_impl(args: TokenStream, input: TokenStream) -> parse::Result<TokenStrea
4242
let mut should_error = false;
4343

4444
f.attrs.retain(|attr| {
45-
if attr.path.is_ident("init") {
45+
if attr.path().is_ident("init") {
4646
test_kind = Some(Attr::Init);
4747
false
48-
} else if attr.path.is_ident("test") {
48+
} else if attr.path().is_ident("test") {
4949
test_kind = Some(Attr::Test);
5050
false
51-
} else if attr.path.is_ident("should_error") {
51+
} else if attr.path().is_ident("should_error") {
5252
should_error = true;
5353
false
5454
} else {
@@ -307,7 +307,7 @@ fn extract_cfgs(attrs: &[Attribute]) -> Vec<Attribute> {
307307
let mut cfgs = vec![];
308308

309309
for attr in attrs {
310-
if attr.path.is_ident("cfg") {
310+
if attr.path().is_ident("cfg") {
311311
cfgs.push(attr.clone());
312312
}
313313
}

0 commit comments

Comments
 (0)