mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-12-23 08:48:08 +00:00
Merge pull request #20956 from ChayimFriedman2/fix-dhat
Some checks are pending
metrics / build_metrics (push) Waiting to run
metrics / other_metrics (diesel-1.4.8) (push) Blocked by required conditions
metrics / other_metrics (hyper-0.14.18) (push) Blocked by required conditions
metrics / other_metrics (ripgrep-13.0.0) (push) Blocked by required conditions
metrics / other_metrics (self) (push) Blocked by required conditions
metrics / other_metrics (webrender-2022) (push) Blocked by required conditions
metrics / generate_final_metrics (push) Blocked by required conditions
rustdoc / rustdoc (push) Waiting to run
Some checks are pending
metrics / build_metrics (push) Waiting to run
metrics / other_metrics (diesel-1.4.8) (push) Blocked by required conditions
metrics / other_metrics (hyper-0.14.18) (push) Blocked by required conditions
metrics / other_metrics (ripgrep-13.0.0) (push) Blocked by required conditions
metrics / other_metrics (self) (push) Blocked by required conditions
metrics / other_metrics (webrender-2022) (push) Blocked by required conditions
metrics / generate_final_metrics (push) Blocked by required conditions
rustdoc / rustdoc (push) Waiting to run
minor: Fix building with DHAT
This commit is contained in:
commit
fca718c0f2
1 changed files with 1 additions and 1 deletions
|
|
@ -140,7 +140,7 @@ pub(crate) fn handle_memory_usage(_state: &mut GlobalState, _: ()) -> anyhow::Re
|
|||
#[cfg(feature = "dhat")]
|
||||
{
|
||||
if let Some(dhat_output_file) = _state.config.dhat_output_file() {
|
||||
let mutprofiler = crate::DHAT_PROFILER.lock().unwrap();
|
||||
let mut profiler = crate::DHAT_PROFILER.lock().unwrap();
|
||||
let old_profiler = profiler.take();
|
||||
// Need to drop the old profiler before creating a new one.
|
||||
drop(old_profiler);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue