diff options
| author | Eduardo Sánchez Muñoz <eduardosm-dev@e64.io> | 2023-10-03 19:33:11 +0200 |
|---|---|---|
| committer | Amanieu d'Antras <amanieu@gmail.com> | 2023-10-10 14:47:43 +0100 |
| commit | 690cd51e5a7f2ffacf3e7cc19b8e55e7423c246f (patch) | |
| tree | 493454a39b9b8681049c3a951bbe00f00395892d /library/stdarch/crates/assert-instr-macro/src | |
| parent | 6f33e9c36b45320149f189c53ab31806569946b8 (diff) | |
| download | rust-690cd51e5a7f2ffacf3e7cc19b8e55e7423c246f.tar.gz rust-690cd51e5a7f2ffacf3e7cc19b8e55e7423c246f.zip | |
Bump syn to 2.0
Also ensure that `assert_instr` attribute has been correctly parsed in stdarch-verify.
Diffstat (limited to 'library/stdarch/crates/assert-instr-macro/src')
| -rw-r--r-- | library/stdarch/crates/assert-instr-macro/src/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/stdarch/crates/assert-instr-macro/src/lib.rs b/library/stdarch/crates/assert-instr-macro/src/lib.rs index dfda3b48bfd..c9de43943fd 100644 --- a/library/stdarch/crates/assert-instr-macro/src/lib.rs +++ b/library/stdarch/crates/assert-instr-macro/src/lib.rs @@ -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") |
