Skip to content

Commit

Permalink
initialize const pool for compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
mkurnikov committed Oct 23, 2020
1 parent c263b18 commit f3395b9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions language_server/src/main_loop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ use crate::inner::config::Config;
use crate::inner::analysis::Analysis;
use lang::compiler::file::MoveFile;
use std::fmt::Debug;
use move_lang::name_pool::ConstPool;

#[derive(Debug)]
pub struct LspError {
Expand Down Expand Up @@ -389,6 +390,8 @@ pub fn compute_file_diagnostics<I>(
I: IntoIterator<Item = String> + Debug,
{
log::info!("Computing diagnostics for files: {:#?}", files);
let _pool = ConstPool::new();

let mut diagnostics = vec![];
for fpath in files {
// clear previous diagnostics for file
Expand Down

0 comments on commit f3395b9

Please sign in to comment.