diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2025-02-24 13:01:43 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2025-03-12 08:55:35 +1100 |
| commit | 281af35cc33e315bd6b52c8a0578108ece75e265 (patch) | |
| tree | 731528f160539185d45a5837ab8aecd413b1e335 /compiler/rustc_middle/src/query/mod.rs | |
| parent | d2642abed34822e845de35ebf4308adcfca15b1f (diff) | |
| download | rust-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.rs | 2 |
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 } |
