@@ -5,8 +5,8 @@ mod input;
55
66use std:: panic;
77
8+ use ra_salsa:: Durability ;
89use rustc_hash:: FxHashMap ;
9- use salsa:: Durability ;
1010use span:: EditionedFileId ;
1111use syntax:: { ast, Parse , SourceFile , SyntaxError } ;
1212use triomphe:: Arc ;
@@ -20,19 +20,19 @@ pub use crate::{
2020 TargetLayoutLoadResult ,
2121 } ,
2222} ;
23- pub use salsa :: { self , Cancelled } ;
23+ pub use ra_salsa :: { self , Cancelled } ;
2424pub use vfs:: { file_set:: FileSet , AnchoredPath , AnchoredPathBuf , VfsPath } ;
2525
2626pub use semver:: { BuildMetadata , Prerelease , Version , VersionReq } ;
2727
2828#[ macro_export]
2929macro_rules! impl_intern_key {
3030 ( $name: ident) => {
31- impl $crate:: salsa :: InternKey for $name {
32- fn from_intern_id( v: $crate:: salsa :: InternId ) -> Self {
31+ impl $crate:: ra_salsa :: InternKey for $name {
32+ fn from_intern_id( v: $crate:: ra_salsa :: InternId ) -> Self {
3333 $name( v)
3434 }
35- fn as_intern_id( & self ) -> $crate:: salsa :: InternId {
35+ fn as_intern_id( & self ) -> $crate:: ra_salsa :: InternId {
3636 self . 0
3737 }
3838 }
@@ -55,30 +55,30 @@ pub trait FileLoader {
5555
5656/// Database which stores all significant input facts: source code and project
5757/// model. Everything else in rust-analyzer is derived from these queries.
58- #[ salsa :: query_group( SourceDatabaseStorage ) ]
58+ #[ ra_salsa :: query_group( SourceDatabaseStorage ) ]
5959pub trait SourceDatabase : FileLoader + std:: fmt:: Debug {
60- #[ salsa :: input]
60+ #[ ra_salsa :: input]
6161 fn compressed_file_text ( & self , file_id : FileId ) -> Arc < [ u8 ] > ;
6262
6363 /// Text of the file.
64- #[ salsa :: lru]
64+ #[ ra_salsa :: lru]
6565 fn file_text ( & self , file_id : FileId ) -> Arc < str > ;
6666
6767 /// Parses the file into the syntax tree.
68- #[ salsa :: lru]
68+ #[ ra_salsa :: lru]
6969 fn parse ( & self , file_id : EditionedFileId ) -> Parse < ast:: SourceFile > ;
7070
7171 /// Returns the set of errors obtained from parsing the file including validation errors.
7272 fn parse_errors ( & self , file_id : EditionedFileId ) -> Option < Arc < [ SyntaxError ] > > ;
7373
7474 /// The crate graph.
75- #[ salsa :: input]
75+ #[ ra_salsa :: input]
7676 fn crate_graph ( & self ) -> Arc < CrateGraph > ;
7777
78- #[ salsa :: input]
78+ #[ ra_salsa :: input]
7979 fn crate_workspace_data ( & self ) -> Arc < FxHashMap < CrateId , Arc < CrateWorkspaceData > > > ;
8080
81- #[ salsa :: transparent]
81+ #[ ra_salsa :: transparent]
8282 fn toolchain_channel ( & self , krate : CrateId ) -> Option < ReleaseChannel > ;
8383}
8484
@@ -126,14 +126,14 @@ fn file_text(db: &dyn SourceDatabase, file_id: FileId) -> Arc<str> {
126126
127127/// We don't want to give HIR knowledge of source roots, hence we extract these
128128/// methods into a separate DB.
129- #[ salsa :: query_group( SourceRootDatabaseStorage ) ]
129+ #[ ra_salsa :: query_group( SourceRootDatabaseStorage ) ]
130130pub trait SourceRootDatabase : SourceDatabase {
131131 /// Path to a file, relative to the root of its source root.
132132 /// Source root of the file.
133- #[ salsa :: input]
133+ #[ ra_salsa :: input]
134134 fn file_source_root ( & self , file_id : FileId ) -> SourceRootId ;
135135 /// Contents of the source root.
136- #[ salsa :: input]
136+ #[ ra_salsa :: input]
137137 fn source_root ( & self , id : SourceRootId ) -> Arc < SourceRoot > ;
138138
139139 /// Crates whose root fool is in `id`.
0 commit comments