Update more internals tests to default

This commit is contained in:
Oliver Scherer 2018-10-16 22:06:19 +02:00
parent ab3f37ec43
commit 54eb222c40

View file

@ -133,8 +133,8 @@ fn compute_types<'tcx,'ast>(tcx: &mut TypeContext<'tcx,'ast>,
}
pub fn main() {
let ty_arena = TypedArena::new();
let ast_arena = TypedArena::new();
let ty_arena = TypedArena::default();
let ast_arena = TypedArena::default();
let mut tcx = TypeContext::new(&ty_arena, &ast_arena);
let ast = tcx.ast(ExprInt);
let ty = compute_types(&mut tcx, ast);