Point out if a local trait has no implementations
This commit is contained in:
parent
26f4b72724
commit
30e6cea0ae
63 changed files with 658 additions and 6 deletions
|
@ -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()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue