mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 12:29:21 +00:00
Remove inherent methods from ast node that carry semantic meaning
This commit is contained in:
parent
13da3d93f9
commit
151afdfe5c
15 changed files with 392 additions and 365 deletions
|
@ -1,3 +1,4 @@
|
|||
use ide_db::helpers::node_ext::vis_eq;
|
||||
use rustc_hash::FxHashSet;
|
||||
|
||||
use syntax::{
|
||||
|
@ -198,7 +199,7 @@ where
|
|||
fn eq_visibility(vis0: Option<ast::Visibility>, vis1: Option<ast::Visibility>) -> bool {
|
||||
match (vis0, vis1) {
|
||||
(None, None) => true,
|
||||
(Some(vis0), Some(vis1)) => vis0.is_eq_to(&vis1),
|
||||
(Some(vis0), Some(vis1)) => vis_eq(&vis0, &vis1),
|
||||
_ => false,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue