File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ impl Files {
86
86
let files = Arc :: clone ( & self . files ) ;
87
87
match files. entry ( file_id) {
88
88
Entry :: Occupied ( mut occupied) => {
89
- occupied. get_mut ( ) . set_text ( db) . to ( Arc :: from ( text) ) ;
89
+ occupied. get_mut ( ) . set_text ( db) . with_durability ( durability ) . to ( Arc :: from ( text) ) ;
90
90
}
91
91
Entry :: Vacant ( vacant) => {
92
92
let text =
@@ -116,7 +116,7 @@ impl Files {
116
116
let source_roots = Arc :: clone ( & self . source_roots ) ;
117
117
match source_roots. entry ( source_root_id) {
118
118
Entry :: Occupied ( mut occupied) => {
119
- occupied. get_mut ( ) . set_source_root ( db) . to ( source_root) ;
119
+ occupied. get_mut ( ) . set_source_root ( db) . with_durability ( durability ) . to ( source_root) ;
120
120
}
121
121
Entry :: Vacant ( vacant) => {
122
122
let source_root =
@@ -145,7 +145,11 @@ impl Files {
145
145
// let db = self;
146
146
match file_source_roots. entry ( id) {
147
147
Entry :: Occupied ( mut occupied) => {
148
- occupied. get_mut ( ) . set_source_root_id ( db) . to ( source_root_id) ;
148
+ occupied
149
+ . get_mut ( )
150
+ . set_source_root_id ( db)
151
+ . with_durability ( durability)
152
+ . to ( source_root_id) ;
149
153
}
150
154
Entry :: Vacant ( vacant) => {
151
155
let file_source_root =
Original file line number Diff line number Diff line change @@ -61,6 +61,7 @@ pub trait ExpandDatabase: RootQueryDb {
61
61
#[ salsa:: input]
62
62
fn proc_macros ( & self ) -> Arc < ProcMacros > ;
63
63
64
+ /// Incrementality query to prevent queries from directly depending on `ExpandDatabase::proc_macros`.
64
65
#[ salsa:: invoke_actual( crate :: proc_macro:: proc_macros_for_crate) ]
65
66
fn proc_macros_for_crate ( & self , krate : Crate ) -> Option < Arc < CrateProcMacros > > ;
66
67
You can’t perform that action at this time.
0 commit comments