1
Fork 0

Make local_def_id_to_hir_id return MaybeOwner<()>

This commit is contained in:
Santiago Pastorino 2022-01-28 15:13:01 -03:00
parent d17eb78cf8
commit 5a299a9903
No known key found for this signature in database
GPG key ID: 8131A24E0C79EFAF
2 changed files with 2 additions and 7 deletions

View file

@ -60,7 +60,7 @@ rustc_queries! {
///
/// This can be conveniently accessed by methods on `tcx.hir()`.
/// Avoid calling this query directly.
query local_def_id_to_hir_id(key: LocalDefId) -> hir::MaybeOwner<crate::hir::Owner<'tcx>> {
query local_def_id_to_hir_id(key: LocalDefId) -> hir::MaybeOwner<()> {
desc { |tcx| "HIR ID of `{}`", tcx.def_path_str(key.to_def_id()) }
}