]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_middle/src/query/mod.rs
Directly use AttributeMap inside OwnerInfo.
[rust.git] / compiler / rustc_middle / src / query / mod.rs
index e604f59175e8ed505db127f2d5106c9b4e0b2aa1..eb4cc7c750c111f0d68359c67cc935b5c0d5d31a 100644 (file)
@@ -77,7 +77,7 @@
     ///
     /// This can be conveniently accessed by methods on `tcx.hir()`.
     /// Avoid calling this query directly.
-    query hir_attrs(key: LocalDefId) -> rustc_middle::hir::AttributeMap<'tcx> {
+    query hir_attrs(key: LocalDefId) -> &'tcx hir::AttributeMap<'tcx> {
         desc { |tcx| "HIR owner attributes in `{}`", tcx.def_path_str(key.to_def_id()) }
     }