Calculate visibilities once in resolve
Then use them through a query based on resolver outputs
This commit is contained in:
parent
cb2462c53f
commit
cee5521a03
26 changed files with 323 additions and 409 deletions
|
@ -2381,15 +2381,6 @@ impl VisibilityKind<'_> {
|
|||
VisibilityKind::Crate(..) | VisibilityKind::Restricted { .. } => true,
|
||||
}
|
||||
}
|
||||
|
||||
pub fn descr(&self) -> &'static str {
|
||||
match *self {
|
||||
VisibilityKind::Public => "public",
|
||||
VisibilityKind::Inherited => "private",
|
||||
VisibilityKind::Crate(..) => "crate-visible",
|
||||
VisibilityKind::Restricted { .. } => "restricted",
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Debug, HashStable_Generic)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue