]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_middle/src/query/mod.rs
Auto merge of #95562 - lcnr:attr-no-encode, r=davidtwco
[rust.git] / compiler / rustc_middle / src / query / mod.rs
index 0ef694a3c8543d52f4b402d2df5b8d0914f35175..6d7ec247d0452356671d17e9cbc1c500985abe63 100644 (file)
         desc { |tcx| "checking whether `{}` is `doc(hidden)`", tcx.def_path_str(def_id) }
     }
 
+    /// Returns the attributes on the item at `def_id`.
+    ///
+    /// Do not use this directly, use `tcx.get_attrs` instead.
     query item_attrs(def_id: DefId) -> &'tcx [ast::Attribute] {
         desc { |tcx| "collecting attributes of `{}`", tcx.def_path_str(def_id) }
         separate_provide_extern