]> git.lizzy.rs Git - rust.git/commitdiff
Add a tracking issue for making the warning a lint
authorOliver Schneider <oli-obk@users.noreply.github.com>
Sun, 15 Apr 2018 11:28:15 +0000 (13:28 +0200)
committerGitHub <noreply@github.com>
Sun, 15 Apr 2018 11:28:15 +0000 (13:28 +0200)
src/librustc_mir/interpret/step.rs

index f891d2b8ccb1d6f9afbb4fc7f4a9f1fe25cf6b61..554d87a04e2f815f5da33775b42588d653602f7e 100644 (file)
@@ -11,6 +11,7 @@ impl<'a, 'mir, 'tcx, M: Machine<'mir, 'tcx>> EvalContext<'a, 'mir, 'tcx, M> {
     pub fn inc_step_counter_and_check_limit(&mut self, n: usize) {
         self.terminators_remaining = self.terminators_remaining.saturating_sub(n);
         if self.terminators_remaining == 0 {
+            // FIXME(#49980): make this warning a lint
             self.tcx.sess.span_warn(self.frame().span, "Constant evaluating a complex constant, this might take some time");
             self.terminators_remaining = 1_000_000;
         }