make query take (LocalDefId, DefId)

This commit is contained in:
Boxy 2022-09-30 18:53:32 +01:00
parent 831f4402aa
commit c1a9cf42b4
5 changed files with 28 additions and 31 deletions

View file

@ -2102,8 +2102,8 @@ rustc_queries! {
}
query compare_assoc_const_impl_item_with_trait_item(
key: (&'tcx ty::AssocItem, &'tcx ty::AssocItem, ty::TraitRef<'tcx>)
key: (LocalDefId, DefId)
) -> Result<(), ErrorGuaranteed> {
desc { |tcx| "checking assoc const `{}` has the same type as trait item", tcx.def_path_str(key.0.def_id) }
desc { |tcx| "checking assoc const `{}` has the same type as trait item", tcx.def_path_str(key.0.to_def_id()) }
}
}