Bump syn to 2.0
Also ensure that `assert_instr` attribute has been correctly parsed in stdarch-verify.
This commit is contained in:
committed by
Amanieu d'Antras
parent
6f33e9c36b
commit
690cd51e5a
@@ -38,7 +38,7 @@ pub fn assert_instr(
|
||||
let maybe_allow_deprecated = if func
|
||||
.attrs
|
||||
.iter()
|
||||
.any(|attr| attr.path.is_ident("deprecated"))
|
||||
.any(|attr| attr.path().is_ident("deprecated"))
|
||||
{
|
||||
quote! { #[allow(deprecated)] }
|
||||
} else {
|
||||
@@ -117,7 +117,7 @@ pub fn assert_instr(
|
||||
.attrs
|
||||
.iter()
|
||||
.filter(|attr| {
|
||||
attr.path
|
||||
attr.path()
|
||||
.segments
|
||||
.first()
|
||||
.expect("attr.path.segments.first() failed")
|
||||
|
||||
Reference in New Issue
Block a user