Skip to content

Commit 642420f

Browse files
committed
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?
2 parents 584dca4 + 0312c6c commit 642420f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

crates/hir-ty/src/consteval/tests.rs

+5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
use base_db::{fixture::WithFixture, FileId};
22
use chalk_ir::Substitution;
33
use hir_def::db::DefDatabase;
4+
use test_utils::skip_slow_tests;
45

56
use crate::{
67
consteval::try_const_usize, db::HirDatabase, mir::pad16, test_db::TestDB, Const, ConstScalar,
@@ -2458,6 +2459,10 @@ fn const_trait_assoc() {
24582459

24592460
#[test]
24602461
fn exec_limits() {
2462+
if skip_slow_tests() {
2463+
return;
2464+
}
2465+
24612466
check_fail(
24622467
r#"
24632468
const GOAL: usize = loop {};

0 commit comments

Comments
 (0)