We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 904e2b6 commit b0c7bdaCopy full SHA for b0c7bda
src/librustc/session/mod.rs
@@ -139,7 +139,7 @@ pub struct Session {
139
pub perf_stats: PerfStats,
140
141
/// Data about code being compiled, gathered during compilation.
142
- pub code_stats: RefCell<CodeStats>,
+ pub code_stats: Lock<CodeStats>,
143
144
next_node_id: Cell<ast::NodeId>,
145
@@ -1122,7 +1122,7 @@ pub fn build_session_(
1122
normalize_ty_after_erasing_regions: AtomicUsize::new(0),
1123
normalize_projection_ty: AtomicUsize::new(0),
1124
},
1125
- code_stats: RefCell::new(CodeStats::new()),
+ code_stats: Lock::new(CodeStats::new()),
1126
optimization_fuel_crate,
1127
optimization_fuel_limit,
1128
print_fuel_crate,
0 commit comments