about summary refs log tree commit diff
path: root/library/stdarch/crates/assert-instr-macro/src
diff options
context:
space:
mode:
Diffstat (limited to 'library/stdarch/crates/assert-instr-macro/src')
-rw-r--r--library/stdarch/crates/assert-instr-macro/src/lib.rs4
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")