Move stats into an @mut stats

This commit is contained in:
Niko Matsakis 2013-06-22 18:38:02 -04:00
parent 50e95ea481
commit 0e81072ded

View file

@ -96,7 +96,7 @@ pub struct CrateContext {
all_llvm_symbols: HashSet<@str>,
tcx: ty::ctxt,
maps: astencode::Maps,
stats: Stats,
stats: @mut Stats,
upcalls: @upcall::Upcalls,
tydesc_type: Type,
int_type: Type,
@ -201,7 +201,7 @@ impl CrateContext {
all_llvm_symbols: HashSet::new(),
tcx: tcx,
maps: maps,
stats: Stats {
stats: @mut Stats {
n_static_tydescs: 0u,
n_glues_created: 0u,
n_null_glues: 0u,