Decouple trait impls of different traits wrt incremental

This commit is contained in:
Oli Scherer 2025-03-27 11:48:06 +00:00
parent 97ea17b71a
commit a7b687c26e
5 changed files with 14 additions and 6 deletions

View file

@ -368,7 +368,7 @@ impl<'tcx> TyCtxt<'tcx> {
}
pub fn hir_trait_impls(self, trait_did: DefId) -> &'tcx [LocalDefId] {
self.all_local_trait_impls(()).get(&trait_did).map_or(&[], |xs| &xs[..])
self.local_trait_impls(trait_did)
}
/// Gets the attributes on the crate. This is preferable to