aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorSergey Parilin <[email protected]>2019-04-02 15:55:14 +0100
committerSergey Parilin <[email protected]>2019-04-02 15:55:14 +0100
commitb74449e9952846a8ea66c3507e52c24348d6dbc9 (patch)
tree00bb1101334b0bf1b189a2e6451cb28e0af959a1 /docs
parent9b73f809596e955216dde24fcf921d6985a1a767 (diff)
parent849d7428aa6b733d452b2ebc55ec322d96345f49 (diff)
Merge remote-tracking branch 'upstream/master' into issue961_profiling
Diffstat (limited to 'docs')
-rw-r--r--docs/dev/architecture.md13
-rw-r--r--docs/user/features.md19
2 files changed, 17 insertions, 15 deletions
diff --git a/docs/dev/architecture.md b/docs/dev/architecture.md
index f990d5bf0..890b18fcd 100644
--- a/docs/dev/architecture.md
+++ b/docs/dev/architecture.md
@@ -130,19 +130,6 @@ APIs in this crate are IDE centric: they take text offsets as input and produce
130offsets and strings as output. This works on top of rich code model powered by 130offsets and strings as output. This works on top of rich code model powered by
131`hir`. 131`hir`.
132 132
133### `crates/ra_ide_api_light`
134
135All IDE features which can be implemented if you only have access to a single
136file. `ra_ide_api_light` could be used to enhance editing of Rust code without
137the need to fiddle with build-systems, file synchronization and such.
138
139In a sense, `ra_ide_api_light` is just a bunch of pure functions which take a
140syntax tree as input.
141
142The tests for `ra_ide_api_light` are `#[cfg(test)] mod tests` unit-tests spread
143throughout its modules.
144
145
146### `crates/ra_lsp_server` 133### `crates/ra_lsp_server`
147 134
148An LSP implementation which wraps `ra_ide_api` into a langauge server protocol. 135An LSP implementation which wraps `ra_ide_api` into a langauge server protocol.
diff --git a/docs/user/features.md b/docs/user/features.md
index b9d2aa84f..7173d88e9 100644
--- a/docs/user/features.md
+++ b/docs/user/features.md
@@ -210,7 +210,7 @@ fn main() {
210} 210}
211``` 211```
212 212
213-- Fill struct fields 213- Fill struct fields
214 214
215```rust 215```rust
216// before: 216// before:
@@ -270,7 +270,22 @@ fn foo() {
270} 270}
271``` 271```
272 272
273-- Remove `dbg!` 273- Inline local variable:
274
275```rust
276// before:
277fn foo() {
278 let a<|> = 1 + 1;
279 let b = a * 10;
280}
281
282// after:
283fn foo() {
284 let b = (1 + 1) * 10;
285}
286```
287
288- Remove `dbg!`
274 289
275```rust 290```rust
276// before: 291// before: