diff options
| author | Camille GILLOT <gillot.camille@gmail.com> | 2021-01-24 17:14:17 +0100 |
|---|---|---|
| committer | Camille GILLOT <gillot.camille@gmail.com> | 2021-03-09 19:28:01 +0100 |
| commit | 38d9d09a58803ebd1f5b4432f9e49d01d2fce0f1 (patch) | |
| tree | 32e130c3de4903b89e094e5ac5f9170e10130958 /compiler/rustc_middle/src/query | |
| parent | 90a562c7ff728d75ba76bdc68aea53d6d0c75ec9 (diff) | |
| download | rust-38d9d09a58803ebd1f5b4432f9e49d01d2fce0f1.tar.gz rust-38d9d09a58803ebd1f5b4432f9e49d01d2fce0f1.zip | |
Use BTreeMap to store attributes.
Diffstat (limited to 'compiler/rustc_middle/src/query')
| -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 8edcefe72da..b03b26d6460 100644 --- a/compiler/rustc_middle/src/query/mod.rs +++ b/compiler/rustc_middle/src/query/mod.rs @@ -65,7 +65,7 @@ rustc_queries! { /// /// This can be conveniently accessed by methods on `tcx.hir()`. /// Avoid calling this query directly. - query hir_attrs(key: LocalDefId) -> &'tcx IndexVec<ItemLocalId, &'tcx [ast::Attribute]> { + query hir_attrs(key: LocalDefId) -> rustc_middle::hir::AttributeMap<'tcx> { eval_always desc { |tcx| "HIR owner attributes in `{}`", tcx.def_path_str(key.to_def_id()) } } |
