aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--crates/ra_project_model/src/lib.rs6
-rw-r--r--docs/user/readme.adoc5
-rw-r--r--xtask/src/lib.rs7
3 files changed, 10 insertions, 8 deletions
diff --git a/crates/ra_project_model/src/lib.rs b/crates/ra_project_model/src/lib.rs
index fef405b7f..250255813 100644
--- a/crates/ra_project_model/src/lib.rs
+++ b/crates/ra_project_model/src/lib.rs
@@ -418,8 +418,10 @@ pub fn get_rustc_cfg_options() -> CfgOptions {
418 // Some nightly-only cfgs, which are required for stdlib 418 // Some nightly-only cfgs, which are required for stdlib
419 { 419 {
420 cfg_options.insert_atom("target_thread_local".into()); 420 cfg_options.insert_atom("target_thread_local".into());
421 for &target_has_atomic in ["16", "32", "64", "8", "cas", "ptr"].iter() { 421 for &target_has_atomic in ["8", "16", "32", "64", "cas", "ptr"].iter() {
422 cfg_options.insert_key_value("target_has_atomic".into(), target_has_atomic.into()) 422 cfg_options.insert_key_value("target_has_atomic".into(), target_has_atomic.into());
423 cfg_options
424 .insert_key_value("target_has_atomic_load_store".into(), target_has_atomic.into());
423 } 425 }
424 } 426 }
425 427
diff --git a/docs/user/readme.adoc b/docs/user/readme.adoc
index b9ecc7055..867aae975 100644
--- a/docs/user/readme.adoc
+++ b/docs/user/readme.adoc
@@ -11,6 +11,9 @@ This manual focuses on a specific usage of the library -- the implementation of
11https://microsoft.github.io/language-server-protocol/[Language Server Protocol]. 11https://microsoft.github.io/language-server-protocol/[Language Server Protocol].
12LSP allows various code editors, like VS Code, Emacs or Vim, to implement semantic feature like completion or goto definition by talking to an external language server process. 12LSP allows various code editors, like VS Code, Emacs or Vim, to implement semantic feature like completion or goto definition by talking to an external language server process.
13 13
14To improve this document, send a pull request against
15https://github.com/rust-analyzer/rust-analyzer/blob/master/docs/user/readme.adoc[this file].
16
14== Installation 17== Installation
15 18
16In theory, one should be able to just install the server binary and have it automatically work with any editor. 19In theory, one should be able to just install the server binary and have it automatically work with any editor.
@@ -44,7 +47,7 @@ Alternatively, both the server and the plugin can be installed from source:
44 47
45[source] 48[source]
46---- 49----
47$ git clone https://github.com/rust-analyzer/rust-analyzer.git && cs rust-analyzer 50$ git clone https://github.com/rust-analyzer/rust-analyzer.git && cd rust-analyzer
48$ cargo xtask install 51$ cargo xtask install
49---- 52----
50 53
diff --git a/xtask/src/lib.rs b/xtask/src/lib.rs
index 25b64301c..2bcd76d60 100644
--- a/xtask/src/lib.rs
+++ b/xtask/src/lib.rs
@@ -109,11 +109,8 @@ fn install_clippy() -> Result<()> {
109 109
110pub fn run_fuzzer() -> Result<()> { 110pub fn run_fuzzer() -> Result<()> {
111 let _d = pushd("./crates/ra_syntax"); 111 let _d = pushd("./crates/ra_syntax");
112 match run!("cargo fuzz --help") { 112 if run!("cargo fuzz --help").is_err() {
113 Ok(_) => (), 113 run!("cargo install cargo-fuzz")?;
114 _ => {
115 run!("cargo install cargo-fuzz")?;
116 }
117 }; 114 };
118 115
119 run!("rustup run nightly -- cargo fuzz run parser")?; 116 run!("rustup run nightly -- cargo fuzz run parser")?;