Format hir_id_validator error using pretty print

This commit is contained in:
Santiago Pastorino 2022-09-06 17:26:05 -03:00
parent e3a738a942
commit d42afd2bd1
No known key found for this signature in database
GPG Key ID: 8131A24E0C79EFAF

View File

@ -103,7 +103,7 @@ fn check<F: FnOnce(&mut HirIdValidator<'a, 'hir>)>(&mut self, owner: LocalDefId,
self.error(|| {
format!(
"ItemLocalIds not assigned densely in {}. \
Max ItemLocalId = {}, missing IDs = {:?}; seens IDs = {:?}",
Max ItemLocalId = {}, missing IDs = {:#?}; seens IDs = {:#?}",
self.hir_map.def_path(owner).to_string_no_crate_verbose(),
max,
missing_items,