File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -141,7 +141,7 @@ pub struct Session {
141
141
/// Data about code being compiled, gathered during compilation.
142
142
pub code_stats : Lock < CodeStats > ,
143
143
144
- next_node_id : Cell < ast:: NodeId > ,
144
+ next_node_id : OneThread < Cell < ast:: NodeId > > ,
145
145
146
146
/// If -zfuel=crate=n is specified, Some(crate).
147
147
optimization_fuel_crate : Option < String > ,
@@ -1107,7 +1107,7 @@ pub fn build_session_(
1107
1107
type_length_limit : Once :: new ( ) ,
1108
1108
const_eval_stack_frame_limit : 100 ,
1109
1109
const_eval_step_limit : 1_000_000 ,
1110
- next_node_id : Cell :: new ( NodeId :: new ( 1 ) ) ,
1110
+ next_node_id : OneThread :: new ( Cell :: new ( NodeId :: new ( 1 ) ) ) ,
1111
1111
injected_allocator : Cell :: new ( None ) ,
1112
1112
allocator_kind : Cell :: new ( None ) ,
1113
1113
injected_panic_runtime : Cell :: new ( None ) ,
You can’t perform that action at this time.
0 commit comments