Use triomphe Arc

This commit is contained in:
Laurențiu Nicola 2023-05-02 17:12:22 +03:00
parent a7168a8c6f
commit 7197a27028
94 changed files with 331 additions and 257 deletions

View file

@ -61,7 +61,7 @@ mod view_item_tree;
mod shuffle_crate_graph;
mod fetch_crates;
use std::{ffi::OsStr, sync::Arc};
use std::ffi::OsStr;
use cfg::CfgOptions;
use fetch_crates::CrateInfo;
@ -73,6 +73,7 @@ use ide_db::{
symbol_index, FxHashMap, FxIndexSet, LineIndexDatabase,
};
use syntax::SourceFile;
use triomphe::Arc;
use crate::navigation_target::{ToNav, TryToNav};

View file

@ -1,9 +1,8 @@
use std::sync::Arc;
use ide_db::{
base_db::{salsa::Durability, CrateGraph, ProcMacros, SourceDatabase},
FxHashMap, RootDatabase,
};
use triomphe::Arc;
// Feature: Shuffle Crate Graph
//

View file

@ -56,8 +56,6 @@ pub(crate) fn ssr_assists(
#[cfg(test)]
mod tests {
use std::sync::Arc;
use expect_test::expect;
use ide_assists::{Assist, AssistResolveStrategy};
use ide_db::{
@ -65,6 +63,7 @@ mod tests {
symbol_index::SymbolsDatabase,
FxHashSet, RootDatabase,
};
use triomphe::Arc;
use super::ssr_assists;

View file

@ -1,4 +1,4 @@
use std::{fmt, marker::PhantomData, sync::Arc};
use std::{fmt, marker::PhantomData};
use hir::{
db::{AstIdMapQuery, AttrsQuery, ParseMacroExpansionQuery},
@ -23,6 +23,7 @@ use profile::{memory_usage, Bytes};
use std::env;
use stdx::format_to;
use syntax::{ast, Parse, SyntaxNode};
use triomphe::Arc;
// Feature: Status
//

View file

@ -1,10 +1,9 @@
use std::sync::Arc;
use dot::{Id, LabelText};
use ide_db::{
base_db::{CrateGraph, CrateId, Dependency, SourceDatabase, SourceDatabaseExt},
FxHashSet, RootDatabase,
};
use triomphe::Arc;
// Feature: View Crate Graph
//