diff options
Diffstat (limited to 'crates/rust-analyzer/src/bin/main.rs')
-rw-r--r-- | crates/rust-analyzer/src/bin/main.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/crates/rust-analyzer/src/bin/main.rs b/crates/rust-analyzer/src/bin/main.rs index 45204d1a3..eec76d415 100644 --- a/crates/rust-analyzer/src/bin/main.rs +++ b/crates/rust-analyzer/src/bin/main.rs | |||
@@ -32,6 +32,7 @@ fn main() -> Result<()> { | |||
32 | args::Command::Highlight { rainbow } => cli::highlight(rainbow)?, | 32 | args::Command::Highlight { rainbow } => cli::highlight(rainbow)?, |
33 | args::Command::Stats { | 33 | args::Command::Stats { |
34 | randomize, | 34 | randomize, |
35 | parallel, | ||
35 | memory_usage, | 36 | memory_usage, |
36 | only, | 37 | only, |
37 | with_deps, | 38 | with_deps, |
@@ -45,6 +46,7 @@ fn main() -> Result<()> { | |||
45 | only.as_ref().map(String::as_ref), | 46 | only.as_ref().map(String::as_ref), |
46 | with_deps, | 47 | with_deps, |
47 | randomize, | 48 | randomize, |
49 | parallel, | ||
48 | load_output_dirs, | 50 | load_output_dirs, |
49 | with_proc_macro, | 51 | with_proc_macro, |
50 | )?, | 52 | )?, |
@@ -60,6 +62,12 @@ fn main() -> Result<()> { | |||
60 | args::Command::Diagnostics { path, load_output_dirs, with_proc_macro, all } => { | 62 | args::Command::Diagnostics { path, load_output_dirs, with_proc_macro, all } => { |
61 | cli::diagnostics(path.as_ref(), load_output_dirs, with_proc_macro, all)? | 63 | cli::diagnostics(path.as_ref(), load_output_dirs, with_proc_macro, all)? |
62 | } | 64 | } |
65 | args::Command::Ssr { rules } => { | ||
66 | cli::apply_ssr_rules(rules)?; | ||
67 | } | ||
68 | args::Command::StructuredSearch { patterns, debug_snippet } => { | ||
69 | cli::search_for_patterns(patterns, debug_snippet)?; | ||
70 | } | ||
63 | args::Command::Version => println!("rust-analyzer {}", env!("REV")), | 71 | args::Command::Version => println!("rust-analyzer {}", env!("REV")), |
64 | } | 72 | } |
65 | Ok(()) | 73 | Ok(()) |