mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-26 13:03:31 +00:00
minor: squelch "unused" warning
This commit is contained in:
parent
409f5fb563
commit
787d980c71
1 changed files with 1 additions and 1 deletions
|
@ -56,7 +56,7 @@ impl MemoryUsage {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(all(target_os = "linux", target_env = "gnu"))]
|
||||
#[cfg(all(target_os = "linux", target_env = "gnu", not(feature = "jemalloc")))]
|
||||
fn memusage_linux() -> MemoryUsage {
|
||||
// Linux/glibc has 2 APIs for allocator introspection that we can use: mallinfo and mallinfo2.
|
||||
// mallinfo uses `int` fields and cannot handle memory usage exceeding 2 GB.
|
||||
|
|
Loading…
Reference in a new issue