1
Fork 0

Rollup merge of #115743 - compiler-errors:no-impls, r=davidtwco

Point out if a local trait has no implementations

Slightly helps with #115741
This commit is contained in:
Matthias Krüger 2023-09-11 17:03:32 +02:00 committed by GitHub
commit f279afb455
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
63 changed files with 658 additions and 6 deletions

View file

@ -90,6 +90,10 @@ pub struct TraitImpls {
}
impl TraitImpls {
pub fn is_empty(&self) -> bool {
self.blanket_impls.is_empty() && self.non_blanket_impls.is_empty()
}
pub fn blanket_impls(&self) -> &[DefId] {
self.blanket_impls.as_slice()
}