Bump syn to 2.0

Also ensure that `assert_instr` attribute has been correctly parsed in stdarch-verify.
This commit is contained in:
Eduardo Sánchez Muñoz
2023-10-03 19:33:11 +02:00
committed by Amanieu d'Antras
parent 6f33e9c36b
commit 690cd51e5a
4 changed files with 57 additions and 33 deletions

View File

@@ -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")