File tree 1 file changed +6
-2
lines changed 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -94,7 +94,9 @@ impl Files {
94
94
. root ( db, path)
95
95
. map_or ( Durability :: default ( ) , |root| root. durability ( db) ) ;
96
96
97
- let builder = File :: builder ( FilePath :: System ( absolute) ) . durability ( durability) ;
97
+ let builder = File :: builder ( FilePath :: System ( absolute) )
98
+ . durability ( durability)
99
+ . path_durability ( Durability :: HIGH ) ;
98
100
99
101
let builder = match metadata {
100
102
Ok ( metadata) if metadata. file_type ( ) . is_file ( ) => builder
@@ -159,9 +161,11 @@ impl Files {
159
161
tracing:: trace!( "Adding virtual file {}" , path) ;
160
162
let virtual_file = VirtualFile (
161
163
File :: builder ( FilePath :: SystemVirtual ( path. to_path_buf ( ) ) )
164
+ . path_durability ( Durability :: HIGH )
162
165
. status ( FileStatus :: Exists )
163
166
. revision ( FileRevision :: zero ( ) )
164
167
. permissions ( None )
168
+ . permissions_durability ( Durability :: HIGH )
165
169
. new ( db) ,
166
170
) ;
167
171
self . inner
@@ -272,7 +276,7 @@ impl std::panic::RefUnwindSafe for Files {}
272
276
/// A file that's either stored on the host system's file system or in the vendored file system.
273
277
#[ salsa:: input]
274
278
pub struct File {
275
- /// The path of the file.
279
+ /// The path of the file (immutable) .
276
280
#[ return_ref]
277
281
pub path : FilePath ,
278
282
You can’t perform that action at this time.
0 commit comments