Skip to content

Commit 907df8c

Browse files
authored
Add a tracking issue for making the warning a lint
1 parent 4f6d118 commit 907df8c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: src/librustc_mir/interpret/step.rs

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ impl<'a, 'mir, 'tcx, M: Machine<'mir, 'tcx>> EvalContext<'a, 'mir, 'tcx, M> {
1111
pub fn inc_step_counter_and_check_limit(&mut self, n: usize) {
1212
self.terminators_remaining = self.terminators_remaining.saturating_sub(n);
1313
if self.terminators_remaining == 0 {
14+
// FIXME(#49980): make this warning a lint
1415
self.tcx.sess.span_warn(self.frame().span, "Constant evaluating a complex constant, this might take some time");
1516
self.terminators_remaining = 1_000_000;
1617
}

0 commit comments

Comments
 (0)