]> git.lizzy.rs Git - rust.git/commitdiff
the tidy strikes again
authorRalf Jung <post@ralfj.de>
Wed, 17 Oct 2018 14:06:11 +0000 (16:06 +0200)
committerRalf Jung <post@ralfj.de>
Thu, 18 Oct 2018 10:09:00 +0000 (12:09 +0200)
src/librustc_mir/interpret/eval_context.rs

index 5fcd5307b8e24c37af2ecaa6c85bbe4954c21203..92cc09f4867b9ea632aa81e088e9a9ec2375efa0 100644 (file)
@@ -505,7 +505,7 @@ pub fn push_stack_frame(
             self.frame_mut().locals = locals;
         }
 
-        if self.stack.len() > 1 { // FIXME no check should be needed, but printing topmost frame crashes rustc...
+        if self.stack.len() > 1 { // FIXME no check should be needed, but some instances ICE
             debug!("ENTERING({}) {}", self.cur_frame(), self.frame().instance);
         }
 
@@ -517,7 +517,7 @@ pub fn push_stack_frame(
     }
 
     pub(super) fn pop_stack_frame(&mut self) -> EvalResult<'tcx> {
-        if self.stack.len() > 1 { // FIXME no check should be needed, but printing topmost frame crashes rustc...
+        if self.stack.len() > 1 { // FIXME no check should be needed, but some instances ICE
             debug!("LEAVING({}) {}", self.cur_frame(), self.frame().instance);
         }
         ::log_settings::settings().indentation -= 1;