diff options
Diffstat (limited to 'crates/rust-analyzer/src/bin/main.rs')
-rw-r--r-- | crates/rust-analyzer/src/bin/main.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/crates/rust-analyzer/src/bin/main.rs b/crates/rust-analyzer/src/bin/main.rs index 408892eab..a473c9165 100644 --- a/crates/rust-analyzer/src/bin/main.rs +++ b/crates/rust-analyzer/src/bin/main.rs | |||
@@ -16,6 +16,10 @@ use vfs::AbsPathBuf; | |||
16 | 16 | ||
17 | use crate::args::HelpPrinted; | 17 | use crate::args::HelpPrinted; |
18 | 18 | ||
19 | #[cfg(all(feature = "mimalloc"))] | ||
20 | #[global_allocator] | ||
21 | static ALLOC: mimalloc::MiMalloc = mimalloc::MiMalloc; | ||
22 | |||
19 | fn main() -> Result<()> { | 23 | fn main() -> Result<()> { |
20 | setup_logging()?; | 24 | setup_logging()?; |
21 | let args = match args::Args::parse()? { | 25 | let args = match args::Args::parse()? { |