We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2cc625d commit 2548259Copy full SHA for 2548259
src/librustc_mir/interpret/step.rs
@@ -11,6 +11,7 @@ impl<'a, 'mir, 'tcx, M: Machine<'mir, 'tcx>> EvalContext<'a, 'mir, 'tcx, M> {
11
pub fn inc_step_counter_and_check_limit(&mut self, n: usize) {
12
self.terminators_remaining = self.terminators_remaining.saturating_sub(n);
13
if self.terminators_remaining == 0 {
14
+ // FIXME(#49980): make this warning a lint
15
self.tcx.sess.span_warn(self.frame().span, "Constant evaluating a complex constant, this might take some time");
16
self.terminators_remaining = 1_000_000;
17
}
0 commit comments