]> git.lizzy.rs Git - rust.git/blobdiff - clippy_lints/src/upper_case_acronyms.rs
Rollup merge of #88860 - nbdd0121:panic, r=m-ou-se
[rust.git] / clippy_lints / src / upper_case_acronyms.rs
index 7fa0e23ee73eae572a8d4e8b8965f0809c46d812..dbf335a70c83118eee6fcc88f1829ab6e6baffd8 100644 (file)
@@ -104,7 +104,7 @@ impl LateLintPass<'_> for UpperCaseAcronyms {
     fn check_item(&mut self, cx: &LateContext<'_>, it: &Item<'_>) {
         // do not lint public items or in macros
         if in_external_macro(cx.sess(), it.span)
-            || (self.avoid_breaking_exported_api && cx.access_levels.is_exported(it.hir_id()))
+            || (self.avoid_breaking_exported_api && cx.access_levels.is_exported(it.def_id))
         {
             return;
         }