diff options
Diffstat (limited to 'crates/vfs')
-rw-r--r-- | crates/vfs/src/lib.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/crates/vfs/src/lib.rs b/crates/vfs/src/lib.rs index 8c8d1114d..2b7b14524 100644 --- a/crates/vfs/src/lib.rs +++ b/crates/vfs/src/lib.rs | |||
@@ -18,15 +18,15 @@ | |||
18 | //! free-form via list of globs, it's up to the [`Handle`] to interpret the globs | 18 | //! free-form via list of globs, it's up to the [`Handle`] to interpret the globs |
19 | //! in any specific way. | 19 | //! in any specific way. |
20 | //! | 20 | //! |
21 | //! VFS stores a flat list of files. [`FileSet`] can partition this list of files | 21 | //! VFS stores a flat list of files. [`file_set::FileSet`] can partition this list |
22 | //! into disjoint sets of files. Traversal-like operations (including getting | 22 | //! of files into disjoint sets of files. Traversal-like operations (including |
23 | //! the neighbor file by the relative path) are handled by the [`FileSet`]. | 23 | //! getting the neighbor file by the relative path) are handled by the [`FileSet`]. |
24 | //! [`FileSet`]s are also pushed to salsa and cause it to re-check `mod foo;` | 24 | //! [`FileSet`]s are also pushed to salsa and cause it to re-check `mod foo;` |
25 | //! declarations when files are created or deleted. | 25 | //! declarations when files are created or deleted. |
26 | //! | 26 | //! |
27 | //! [`file_set::FileSet`] and [`loader::Entry`] play similar, but different roles. | 27 | //! [`FileSet`] and [`loader::Entry`] play similar, but different roles. |
28 | //! Both specify the "set of paths/files", one is geared towards file watching, | 28 | //! Both specify the "set of paths/files", one is geared towards file watching, |
29 | //! the other towards salsa changes. In particular, single [`file_set::FileSet`] | 29 | //! the other towards salsa changes. In particular, single [`FileSet`] |
30 | //! may correspond to several [`loader::Entry`]. For example, a crate from | 30 | //! may correspond to several [`loader::Entry`]. For example, a crate from |
31 | //! crates.io which uses code generation would have two [`Entries`] -- for sources | 31 | //! crates.io which uses code generation would have two [`Entries`] -- for sources |
32 | //! in `~/.cargo`, and for generated code in `./target/debug/build`. It will | 32 | //! in `~/.cargo`, and for generated code in `./target/debug/build`. It will |