diff options
-rw-r--r-- | README.md | 8 | ||||
-rw-r--r-- | crates/ra_hir_ty/src/diagnostics.rs | 4 | ||||
-rw-r--r-- | crates/ra_ide/src/diagnostics.rs | 2 | ||||
-rw-r--r-- | docs/user/readme.adoc | 4 |
4 files changed, 11 insertions, 7 deletions
@@ -27,9 +27,13 @@ If you want to **use** rust-analyzer's language server with your editor of | |||
27 | choice, check [the manual](https://rust-analyzer.github.io/manual.html) folder. It also contains some tips & tricks to help | 27 | choice, check [the manual](https://rust-analyzer.github.io/manual.html) folder. It also contains some tips & tricks to help |
28 | you be more productive when using rust-analyzer. | 28 | you be more productive when using rust-analyzer. |
29 | 29 | ||
30 | ## Getting in touch | 30 | ## Communication |
31 | 31 | ||
32 | We are on the rust-lang Zulip! | 32 | For usage and troubleshooting requests, please use "IDEs and Editors" category of the Rust forum: |
33 | |||
34 | https://users.rust-lang.org/c/ide/14 | ||
35 | |||
36 | For questions about development and implementation, join rls-2.0 working group on Zulip: | ||
33 | 37 | ||
34 | https://rust-lang.zulipchat.com/#narrow/stream/185405-t-compiler.2Frls-2.2E0 | 38 | https://rust-lang.zulipchat.com/#narrow/stream/185405-t-compiler.2Frls-2.2E0 |
35 | 39 | ||
diff --git a/crates/ra_hir_ty/src/diagnostics.rs b/crates/ra_hir_ty/src/diagnostics.rs index 41ac70272..2c7298714 100644 --- a/crates/ra_hir_ty/src/diagnostics.rs +++ b/crates/ra_hir_ty/src/diagnostics.rs | |||
@@ -40,7 +40,7 @@ impl Diagnostic for MissingFields { | |||
40 | fn message(&self) -> String { | 40 | fn message(&self) -> String { |
41 | let mut buf = String::from("Missing structure fields:\n"); | 41 | let mut buf = String::from("Missing structure fields:\n"); |
42 | for field in &self.missed_fields { | 42 | for field in &self.missed_fields { |
43 | format_to!(buf, "- {}", field); | 43 | format_to!(buf, "- {}\n", field); |
44 | } | 44 | } |
45 | buf | 45 | buf |
46 | } | 46 | } |
@@ -73,7 +73,7 @@ impl Diagnostic for MissingPatFields { | |||
73 | fn message(&self) -> String { | 73 | fn message(&self) -> String { |
74 | let mut buf = String::from("Missing structure fields:\n"); | 74 | let mut buf = String::from("Missing structure fields:\n"); |
75 | for field in &self.missed_fields { | 75 | for field in &self.missed_fields { |
76 | format_to!(buf, "- {}", field); | 76 | format_to!(buf, "- {}\n", field); |
77 | } | 77 | } |
78 | buf | 78 | buf |
79 | } | 79 | } |
diff --git a/crates/ra_ide/src/diagnostics.rs b/crates/ra_ide/src/diagnostics.rs index 3d83c0f71..15dc50cf1 100644 --- a/crates/ra_ide/src/diagnostics.rs +++ b/crates/ra_ide/src/diagnostics.rs | |||
@@ -664,7 +664,7 @@ mod tests { | |||
664 | assert_debug_snapshot!(diagnostics, @r###" | 664 | assert_debug_snapshot!(diagnostics, @r###" |
665 | [ | 665 | [ |
666 | Diagnostic { | 666 | Diagnostic { |
667 | message: "Missing structure fields:\n- b", | 667 | message: "Missing structure fields:\n- b\n", |
668 | range: 224..233, | 668 | range: 224..233, |
669 | severity: Error, | 669 | severity: Error, |
670 | fix: Some( | 670 | fix: Some( |
diff --git a/docs/user/readme.adoc b/docs/user/readme.adoc index 40ed54809..9539d326d 100644 --- a/docs/user/readme.adoc +++ b/docs/user/readme.adoc | |||
@@ -9,8 +9,6 @@ | |||
9 | :caution-caption: :fire: | 9 | :caution-caption: :fire: |
10 | :warning-caption: :warning: | 10 | :warning-caption: :warning: |
11 | 11 | ||
12 | |||
13 | |||
14 | // Master copy of this document lives in the https://github.com/rust-analyzer/rust-analyzer repository | 12 | // Master copy of this document lives in the https://github.com/rust-analyzer/rust-analyzer repository |
15 | 13 | ||
16 | At its core, rust-analyzer is a *library* for semantic analysis of Rust code as it changes over time. | 14 | At its core, rust-analyzer is a *library* for semantic analysis of Rust code as it changes over time. |
@@ -21,6 +19,8 @@ The LSP allows various code editors, like VS Code, Emacs or Vim, to implement se | |||
21 | To improve this document, send a pull request against | 19 | To improve this document, send a pull request against |
22 | https://github.com/rust-analyzer/rust-analyzer/blob/master/docs/user/readme.adoc[this file]. | 20 | https://github.com/rust-analyzer/rust-analyzer/blob/master/docs/user/readme.adoc[this file]. |
23 | 21 | ||
22 | If you have questions about using rust-analyzer, please ask them in the https://users.rust-lang.org/c/ide/14["`IDEs and Editors`"] topic of Rust users forum. | ||
23 | |||
24 | == Installation | 24 | == Installation |
25 | 25 | ||
26 | In theory, one should be able to just install the <<rust-analyzer-language-server-binary,`rust-analyzer` binary>> and have it automatically work with any editor. | 26 | In theory, one should be able to just install the <<rust-analyzer-language-server-binary,`rust-analyzer` binary>> and have it automatically work with any editor. |