We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9b88e0a + a1dfa0f commit f032cbaCopy full SHA for f032cba
src/librustc_driver/lib.rs
@@ -348,8 +348,10 @@ pub fn run_compiler(
348
queries.global_ctxt()?;
349
350
// Drop AST after creating GlobalCtxt to free memory
351
- let _timer = sess.prof.generic_activity("drop_ast");
352
- mem::drop(queries.expansion()?.take());
+ {
+ let _timer = sess.prof.generic_activity("drop_ast");
353
+ mem::drop(queries.expansion()?.take());
354
+ }
355
356
if sess.opts.debugging_opts.no_analysis || sess.opts.debugging_opts.ast_json {
357
return early_exit();
0 commit comments