mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 05:15:04 +00:00
visible_from -> is_visible_from
This commit is contained in:
parent
dfe95d735b
commit
9fd2c813ca
4 changed files with 10 additions and 10 deletions
|
@ -1053,8 +1053,8 @@ impl<T: Into<AttrDef> + Copy> Docs for T {
|
|||
|
||||
pub trait HasVisibility {
|
||||
fn visibility(&self, db: &impl HirDatabase) -> Visibility;
|
||||
fn visible_from(&self, db: &impl HirDatabase, module: Module) -> bool {
|
||||
fn is_visible_from(&self, db: &impl HirDatabase, module: Module) -> bool {
|
||||
let vis = self.visibility(db);
|
||||
vis.visible_from(db, module.id)
|
||||
vis.is_visible_from(db, module.id)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue