Directly use AttributeMap inside OwnerInfo.
This commit is contained in:
parent
1c7f85f17c
commit
41e80b85cf
8 changed files with 42 additions and 28 deletions
|
@ -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()) }
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue