about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-07-12 23:04:16 +0000
committerbors <bors@rust-lang.org>2023-07-12 23:04:16 +0000
commit642420fb601e563f60141a4ea401fbb1d03c292b (patch)
tree97cada2681735149e7df3678c607bed4850acecb
parent584dca4a35d041a60e8d820175be4e08f2592e12 (diff)
parent0312c6c321ac5d24f56b2c0e69c6252f0667811c (diff)
downloadrust-642420fb601e563f60141a4ea401fbb1d03c292b.tar.gz
rust-642420fb601e563f60141a4ea401fbb1d03c292b.zip
Auto merge of #15267 - lowr:patch/exceeding-exec-limit-is-slow, r=lnicola
Mark test for MIR execution limit as slow test

The test for MIR execution limit accounts for ~2/3 of total execution time of non-slow hir-ty tests. It significantly slows down edit-and-run-test type of workflow. Can we mark it as a slow test?
-rw-r--r--crates/hir-ty/src/consteval/tests.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/crates/hir-ty/src/consteval/tests.rs b/crates/hir-ty/src/consteval/tests.rs
index 8e21272e14a..d99a36f915d 100644
--- a/crates/hir-ty/src/consteval/tests.rs
+++ b/crates/hir-ty/src/consteval/tests.rs
@@ -1,6 +1,7 @@
 use base_db::{fixture::WithFixture, FileId};
 use chalk_ir::Substitution;
 use hir_def::db::DefDatabase;
+use test_utils::skip_slow_tests;
 
 use crate::{
     consteval::try_const_usize, db::HirDatabase, mir::pad16, test_db::TestDB, Const, ConstScalar,
@@ -2458,6 +2459,10 @@ fn const_trait_assoc() {
 
 #[test]
 fn exec_limits() {
+    if skip_slow_tests() {
+        return;
+    }
+
     check_fail(
         r#"
     const GOAL: usize = loop {};