Add type info.

This commit is contained in:
Stephen Chung 2020-05-31 12:36:42 +08:00
parent 13c49387ef
commit 5f727335a6

View File

@ -2485,7 +2485,7 @@ fn parse_global_level<'a>(
max_expr_depth: (usize, usize), max_expr_depth: (usize, usize),
) -> Result<(Vec<Stmt>, Vec<FnDef>), ParseError> { ) -> Result<(Vec<Stmt>, Vec<FnDef>), ParseError> {
let mut statements = Vec::<Stmt>::new(); let mut statements = Vec::<Stmt>::new();
let mut functions = HashMap::with_hasher(StraightHasherBuilder); let mut functions = HashMap::<u64, FnDef, _>::with_hasher(StraightHasherBuilder);
let mut state = ParseState::new(max_expr_depth.0); let mut state = ParseState::new(max_expr_depth.0);
while !input.peek().unwrap().0.is_eof() { while !input.peek().unwrap().0.is_eof() {