aboutsummaryrefslogtreecommitdiff
path: root/crates/rust-analyzer/src/bin/flags.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/rust-analyzer/src/bin/flags.rs')
-rw-r--r--crates/rust-analyzer/src/bin/flags.rs24
1 files changed, 12 insertions, 12 deletions
diff --git a/crates/rust-analyzer/src/bin/flags.rs b/crates/rust-analyzer/src/bin/flags.rs
index 63953098a..19173241b 100644
--- a/crates/rust-analyzer/src/bin/flags.rs
+++ b/crates/rust-analyzer/src/bin/flags.rs
@@ -67,10 +67,10 @@ xflags::xflags! {
67 /// Don't load sysroot crates (`std`, `core` & friends). 67 /// Don't load sysroot crates (`std`, `core` & friends).
68 optional --no-sysroot 68 optional --no-sysroot
69 69
70 /// Load OUT_DIR values by running `cargo check` before analysis. 70 /// Don't run build scripts or load `OUT_DIR` values by running `cargo check` before analysis.
71 optional --load-output-dirs 71 optional --disable-build-scripts
72 /// Use proc-macro-srv for proc-macro expanding. 72 /// Don't use expand proc macros.
73 optional --with-proc-macro 73 optional --disable-proc-macros
74 /// Only resolve names, don't run type inference. 74 /// Only resolve names, don't run type inference.
75 optional --skip-inference 75 optional --skip-inference
76 } 76 }
@@ -79,10 +79,10 @@ xflags::xflags! {
79 /// Directory with Cargo.toml. 79 /// Directory with Cargo.toml.
80 required path: PathBuf 80 required path: PathBuf
81 { 81 {
82 /// Load OUT_DIR values by running `cargo check` before analysis. 82 /// Don't run build scripts or load `OUT_DIR` values by running `cargo check` before analysis.
83 optional --load-output-dirs 83 optional --disable-build-scripts
84 /// Use proc-macro-srv for proc-macro expanding. 84 /// Don't use expand proc macros.
85 optional --with-proc-macro 85 optional --disable-proc-macros
86 } 86 }
87 87
88 cmd ssr 88 cmd ssr
@@ -158,8 +158,8 @@ pub struct AnalysisStats {
158 pub only: Option<String>, 158 pub only: Option<String>,
159 pub with_deps: bool, 159 pub with_deps: bool,
160 pub no_sysroot: bool, 160 pub no_sysroot: bool,
161 pub load_output_dirs: bool, 161 pub disable_build_scripts: bool,
162 pub with_proc_macro: bool, 162 pub disable_proc_macros: bool,
163 pub skip_inference: bool, 163 pub skip_inference: bool,
164} 164}
165 165
@@ -167,8 +167,8 @@ pub struct AnalysisStats {
167pub struct Diagnostics { 167pub struct Diagnostics {
168 pub path: PathBuf, 168 pub path: PathBuf,
169 169
170 pub load_output_dirs: bool, 170 pub disable_build_scripts: bool,
171 pub with_proc_macro: bool, 171 pub disable_proc_macros: bool,
172} 172}
173 173
174#[derive(Debug)] 174#[derive(Debug)]