From c3e48cba184f2f8aaf3d30196b674c8a7dd8449b Mon Sep 17 00:00:00 2001 From: David Sherret Date: Mon, 29 Aug 2022 14:24:10 -0400 Subject: fix(compile): panic when running with a populated dep analysis cache (#15672) Closes #15612 --- cli/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cli/main.rs') diff --git a/cli/main.rs b/cli/main.rs index 79a806f0b..391b4ff0d 100644 --- a/cli/main.rs +++ b/cli/main.rs @@ -247,8 +247,8 @@ async fn compile_command( graph.valid().unwrap(); - let store = ps.parsed_source_cache.as_store(); - let eszip = eszip::EszipV2::from_graph(graph, &*store, Default::default())?; + let parser = ps.parsed_source_cache.as_capturing_parser(); + let eszip = eszip::EszipV2::from_graph(graph, &parser, Default::default())?; info!( "{} {}", -- cgit v1.2.3