aboutsummaryrefslogtreecommitdiff
path: root/docs/dev
diff options
context:
space:
mode:
authorKushagra Gupta <[email protected]>2021-02-03 16:00:42 +0000
committerGitHub <[email protected]>2021-02-03 16:00:42 +0000
commitb75e85998d9a6e21881eef8e27f9330cbdbc41b4 (patch)
tree9b43efff5e0555fa988f7c09369a9dedb512f3ec /docs/dev
parented35e516b13682726e4c9ee2fc3c88da6253a402 (diff)
typo fixes
Diffstat (limited to 'docs/dev')
-rw-r--r--docs/dev/architecture.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/dev/architecture.md b/docs/dev/architecture.md
index 9e21d7c83..2ba8b7967 100644
--- a/docs/dev/architecture.md
+++ b/docs/dev/architecture.md
@@ -164,7 +164,7 @@ These crates also define various intermediate representations of the core.
164 164
165**Architecture Invariant:** these crates explicitly care about being incremental. 165**Architecture Invariant:** these crates explicitly care about being incremental.
166The core invariant we maintain is "typing inside a function's body never invalidates global derived data". 166The core invariant we maintain is "typing inside a function's body never invalidates global derived data".
167IE, if you change the body of `foo`, all facts about `bar` should remain intact. 167i.e., if you change the body of `foo`, all facts about `bar` should remain intact.
168 168
169**Architecture Invariant:** hir exists only in context of particular crate instance with specific CFG flags. 169**Architecture Invariant:** hir exists only in context of particular crate instance with specific CFG flags.
170The same syntax may produce several instances of HIR if the crate participates in the crate graph more than once. 170The same syntax may produce several instances of HIR if the crate participates in the crate graph more than once.
@@ -232,7 +232,7 @@ All other requests are processed in background.
232 232
233**Architecture Invariant:** the server is stateless, a-la HTTP. 233**Architecture Invariant:** the server is stateless, a-la HTTP.
234Sometimes state needs to be preserved between requests. 234Sometimes state needs to be preserved between requests.
235For example, "what is the `edit` for the fifth's completion item of the last completion edit?". 235For example, "what is the `edit` for the fifth completion item of the last completion edit?".
236For this, the second request should include enough info to re-create the context from scratch. 236For this, the second request should include enough info to re-create the context from scratch.
237This generally means including all the parameters of the original request. 237This generally means including all the parameters of the original request.
238 238
@@ -249,7 +249,7 @@ These crates deal with invoking `cargo` to learn about project structure and get
249They use `crates/path` heavily instead of `std::path`. 249They use `crates/path` heavily instead of `std::path`.
250A single `rust-analyzer` process can serve many projects, so it is important that server's current directory does not leak. 250A single `rust-analyzer` process can serve many projects, so it is important that server's current directory does not leak.
251 251
252### `crates/mbe`, `crated/tt`, `crates/proc_macro_api`, `crates/proc_macro_srv` 252### `crates/mbe`, `crates/tt`, `crates/proc_macro_api`, `crates/proc_macro_srv`
253 253
254These crates implement macros as token tree -> token tree transforms. 254These crates implement macros as token tree -> token tree transforms.
255They are independent from the rest of the code. 255They are independent from the rest of the code.
@@ -264,7 +264,7 @@ These crates implement a virtual file system.
264They provide consistent snapshots of the underlying file system and insulate messy OS paths. 264They provide consistent snapshots of the underlying file system and insulate messy OS paths.
265 265
266**Architecture Invariant:** vfs doesn't assume a single unified file system. 266**Architecture Invariant:** vfs doesn't assume a single unified file system.
267IE, a single rust-analyzer process can act as a remote server for two different machines, where the same `/tmp/foo.rs` path points to different files. 267i.e., a single rust-analyzer process can act as a remote server for two different machines, where the same `/tmp/foo.rs` path points to different files.
268For this reason, all path APIs generally take some existing path as a "file system witness". 268For this reason, all path APIs generally take some existing path as a "file system witness".
269 269
270### `crates/stdx` 270### `crates/stdx`