mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-11-17 02:42:54 +00:00
Avoid referring to the item tree except in the def map
Item tree IDs are very unstable (adding an item of a kind invalidates all following items of the same kind). Instead use ast ids, which, since the previous commit, are pretty stable.
This commit is contained in:
parent
4bcf03e28b
commit
ed0b4506dd
37 changed files with 981 additions and 955 deletions
|
|
@ -626,7 +626,7 @@ fn private_vis() -> RawVisibility {
|
|||
)
|
||||
}
|
||||
|
||||
fn visibility_from_ast(
|
||||
pub(crate) fn visibility_from_ast(
|
||||
db: &dyn DefDatabase,
|
||||
node: Option<ast::Visibility>,
|
||||
span_for_range: &mut dyn FnMut(::tt::TextRange) -> SyntaxContext,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue