diff options
Diffstat (limited to 'crates/rust-analyzer/src/bin/main.rs')
-rw-r--r-- | crates/rust-analyzer/src/bin/main.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/rust-analyzer/src/bin/main.rs b/crates/rust-analyzer/src/bin/main.rs index 2b842d393..afc96505f 100644 --- a/crates/rust-analyzer/src/bin/main.rs +++ b/crates/rust-analyzer/src/bin/main.rs | |||
@@ -91,14 +91,14 @@ fn try_main() -> Result<()> { | |||
91 | with_deps: cmd.with_deps, | 91 | with_deps: cmd.with_deps, |
92 | no_sysroot: cmd.no_sysroot, | 92 | no_sysroot: cmd.no_sysroot, |
93 | path: cmd.path, | 93 | path: cmd.path, |
94 | load_output_dirs: cmd.load_output_dirs, | 94 | enable_build_scripts: !cmd.disable_build_scripts, |
95 | with_proc_macro: cmd.with_proc_macro, | 95 | enable_proc_macros: !cmd.disable_proc_macros, |
96 | skip_inference: cmd.skip_inference, | 96 | skip_inference: cmd.skip_inference, |
97 | } | 97 | } |
98 | .run(verbosity)?, | 98 | .run(verbosity)?, |
99 | 99 | ||
100 | flags::RustAnalyzerCmd::Diagnostics(cmd) => { | 100 | flags::RustAnalyzerCmd::Diagnostics(cmd) => { |
101 | cli::diagnostics(&cmd.path, cmd.load_output_dirs, cmd.with_proc_macro)? | 101 | cli::diagnostics(&cmd.path, !cmd.disable_build_scripts, !cmd.disable_proc_macros)? |
102 | } | 102 | } |
103 | flags::RustAnalyzerCmd::Ssr(cmd) => cli::apply_ssr_rules(cmd.rule)?, | 103 | flags::RustAnalyzerCmd::Ssr(cmd) => cli::apply_ssr_rules(cmd.rule)?, |
104 | flags::RustAnalyzerCmd::Search(cmd) => cli::search_for_patterns(cmd.pattern, cmd.debug)?, | 104 | flags::RustAnalyzerCmd::Search(cmd) => cli::search_for_patterns(cmd.pattern, cmd.debug)?, |