mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-26 11:59:49 +00:00
Use triomphe Arc
This commit is contained in:
parent
a7168a8c6f
commit
7197a27028
94 changed files with 331 additions and 257 deletions
|
@ -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};
|
||||
|
||||
|
|
|
@ -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
|
||||
//
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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
|
||||
//
|
||||
|
|
|
@ -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
|
||||
//
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue