Decouple trait impls of different traits wrt incremental
This commit is contained in:
parent
97ea17b71a
commit
a7b687c26e
5 changed files with 14 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue