diff options
| author | Oliver Schneider <oli-obk@users.noreply.github.com> | 2018-04-15 13:28:15 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-04-15 13:28:15 +0200 |
| commit | 907df8c0f7fd5ce07495010d3c0dd112f825d2fe (patch) | |
| tree | bbeb464b8941c9e0f5d2a5073a6803ecdaa0817a | |
| parent | 4f6d11804893f5cfbb6bd0809985f9c77acd9969 (diff) | |
| download | rust-907df8c0f7fd5ce07495010d3c0dd112f825d2fe.tar.gz rust-907df8c0f7fd5ce07495010d3c0dd112f825d2fe.zip | |
Add a tracking issue for making the warning a lint
| -rw-r--r-- | src/librustc_mir/interpret/step.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/librustc_mir/interpret/step.rs b/src/librustc_mir/interpret/step.rs index f891d2b8ccb..554d87a04e2 100644 --- a/src/librustc_mir/interpret/step.rs +++ b/src/librustc_mir/interpret/step.rs @@ -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; } |
