about summary refs log tree commit diff
path: root/src/librustc/session
diff options
context:
space:
mode:
authorJohn Kåre Alsaker <john.kare.alsaker@gmail.com>2018-04-01 08:19:50 +0200
committerJohn Kåre Alsaker <john.kare.alsaker@gmail.com>2018-04-10 14:40:25 +0200
commita23e90a6ded12faff52515918ea7da16e40f5166 (patch)
treeae0209d3b3c1970f03a5f60ed35da34f2d60366e /src/librustc/session
parent753cd9a12c64bf504ae2bfdc3a676a28d8076793 (diff)
downloadrust-a23e90a6ded12faff52515918ea7da16e40f5166.tar.gz
rust-a23e90a6ded12faff52515918ea7da16e40f5166.zip
Remove Cell from const_eval_stack_frame_limit and const_eval_step_limit
Diffstat (limited to 'src/librustc/session')
-rw-r--r--src/librustc/session/mod.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/librustc/session/mod.rs b/src/librustc/session/mod.rs
index 80e91db15ed..d02c2bbb810 100644
--- a/src/librustc/session/mod.rs
+++ b/src/librustc/session/mod.rs
@@ -111,9 +111,9 @@ pub struct Session {
     pub type_length_limit: Once<usize>,
 
     /// The maximum number of stackframes allowed in const eval
-    pub const_eval_stack_frame_limit: Cell<usize>,
+    pub const_eval_stack_frame_limit: usize,
     /// The maximum number miri steps per constant
-    pub const_eval_step_limit: Cell<usize>,
+    pub const_eval_step_limit: usize,
 
     /// The metadata::creader module may inject an allocator/panic_runtime
     /// dependency if it didn't already find one, and this tracks what was
@@ -1110,8 +1110,8 @@ pub fn build_session_(
         features: RefCell::new(None),
         recursion_limit: Once::new(),
         type_length_limit: Once::new(),
-        const_eval_stack_frame_limit: Cell::new(100),
-        const_eval_step_limit: Cell::new(1_000_000),
+        const_eval_stack_frame_limit: 100,
+        const_eval_step_limit: 1_000_000,
         next_node_id: Cell::new(NodeId::new(1)),
         injected_allocator: Cell::new(None),
         allocator_kind: Cell::new(None),