From dd81cb98c6a983540b6aa630a75f645086fba77b Mon Sep 17 00:00:00 2001 From: lemon Date: Wed, 15 Nov 2023 06:46:10 +0900 Subject: [PATCH] checker: change the warning `more than 1000 possibilities in match range` to a notice (#19862) --- vlib/v/checker/match.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vlib/v/checker/match.v b/vlib/v/checker/match.v index 46423568c44fb5..247dcce3bdea7b 100644 --- a/vlib/v/checker/match.v +++ b/vlib/v/checker/match.v @@ -281,7 +281,7 @@ fn (mut c Checker) match_exprs(mut node ast.MatchExpr, cond_type_sym ast.TypeSym if both_low_and_high_are_known { high_low_cutoff := 1000 if high - low > high_low_cutoff { - c.warn('more than ${high_low_cutoff} possibilities (${low} ... ${high}) in match range', + c.note('more than ${high_low_cutoff} possibilities (${low} ... ${high}) in match range may affect compile time', branch.pos) } for i in low .. high + 1 {