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:
commit
f279afb455
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