Directly use AttributeMap inside OwnerInfo.

This commit is contained in:
Camille GILLOT 2021-09-12 11:41:35 +02:00
parent 1c7f85f17c
commit 41e80b85cf
8 changed files with 42 additions and 28 deletions

View file

@ -77,7 +77,7 @@ rustc_queries! {
///
/// 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()) }
}