summaryrefslogtreecommitdiff
path: root/cli/main.rs
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2022-08-29 14:24:10 -0400
committerGitHub <noreply@github.com>2022-08-29 14:24:10 -0400
commitc3e48cba184f2f8aaf3d30196b674c8a7dd8449b (patch)
tree4001dc9a30abbcf370971931891c0cf59aba4a2d /cli/main.rs
parentb62ef4d37bc1207abb2daed5e2568eb581f07aa2 (diff)
fix(compile): panic when running with a populated dep analysis cache (#15672)
Closes #15612
Diffstat (limited to 'cli/main.rs')
-rw-r--r--cli/main.rs4
1 files changed, 2 insertions, 2 deletions
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!(
"{} {}",