Remove inherent methods from ast node that carry semantic meaning

This commit is contained in:
Lukas Wirth 2021-09-26 16:29:42 +02:00
parent 13da3d93f9
commit 151afdfe5c
15 changed files with 392 additions and 365 deletions

View file

@ -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,
}
}