about summary refs log tree commit diff
path: root/clippy_utils/src/macros.rs
diff options
context:
space:
mode:
Diffstat (limited to 'clippy_utils/src/macros.rs')
-rw-r--r--clippy_utils/src/macros.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_utils/src/macros.rs b/clippy_utils/src/macros.rs
index ba126fcd05d..60473a26493 100644
--- a/clippy_utils/src/macros.rs
+++ b/clippy_utils/src/macros.rs
@@ -42,7 +42,7 @@ pub fn is_format_macro(cx: &LateContext<'_>, macro_def_id: DefId) -> bool {
     } else {
         // Allow users to tag any macro as being format!-like
         // TODO: consider deleting FORMAT_MACRO_DIAG_ITEMS and using just this method
-        get_unique_attr(cx.sess(), cx.tcx.get_attrs_unchecked(macro_def_id), sym::format_args).is_some()
+        get_unique_attr(cx.sess(), cx.tcx.get_all_attrs(macro_def_id), sym::format_args).is_some()
     }
 }