mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 14:51:48 +00:00
Setup global allocator in the correct crate
It worked before, but was roundabout
This commit is contained in:
parent
deed44a472
commit
9ad41eb908
5 changed files with 6 additions and 10 deletions
|
@ -13,10 +13,6 @@ pub use crate::{
|
|||
memory_usage::{Bytes, MemoryUsage},
|
||||
};
|
||||
|
||||
#[cfg(all(feature = "mimalloc"))]
|
||||
#[global_allocator]
|
||||
static ALLOC: mimalloc::MiMalloc = mimalloc::MiMalloc;
|
||||
|
||||
/// Prints backtrace to stderr, useful for debugging.
|
||||
#[cfg(feature = "backtrace")]
|
||||
pub fn print_backtrace() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue