about summary refs log tree commit diff
path: root/compiler/rustc_middle/src/query/mod.rs
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2025-02-24 13:01:43 +1100
committerNicholas Nethercote <n.nethercote@gmail.com>2025-03-12 08:55:35 +1100
commit281af35cc33e315bd6b52c8a0578108ece75e265 (patch)
tree731528f160539185d45a5837ab8aecd413b1e335 /compiler/rustc_middle/src/query/mod.rs
parentd2642abed34822e845de35ebf4308adcfca15b1f (diff)
downloadrust-281af35cc33e315bd6b52c8a0578108ece75e265.tar.gz
rust-281af35cc33e315bd6b52c8a0578108ece75e265.zip
Rename `hir_attrs` query as `hir_attr_map`.
To make room for the moving of `Map::attrs` to `TyCtxt::hir_attrs` in
the next commit. (It makes sense to rename the query, because it has
many fewer uses than the method.)
Diffstat (limited to 'compiler/rustc_middle/src/query/mod.rs')
-rw-r--r--compiler/rustc_middle/src/query/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_middle/src/query/mod.rs b/compiler/rustc_middle/src/query/mod.rs
index c8708857565..781a898a6e9 100644
--- a/compiler/rustc_middle/src/query/mod.rs
+++ b/compiler/rustc_middle/src/query/mod.rs
@@ -198,7 +198,7 @@ rustc_queries! {
     ///
     /// This can be conveniently accessed by methods on `tcx.hir()`.
     /// Avoid calling this query directly.
-    query hir_attrs(key: hir::OwnerId) -> &'tcx hir::AttributeMap<'tcx> {
+    query hir_attr_map(key: hir::OwnerId) -> &'tcx hir::AttributeMap<'tcx> {
         desc { |tcx| "getting HIR owner attributes in `{}`", tcx.def_path_str(key) }
         feedable
     }