Skip to content

Commit f5b2fed

Browse files
committed
Auto merge of #103877 - oli-obk:const_eval_step_limit, r=fee1-dead
Replace const eval limit by a lint and add an exponential backoff warning The lint triggers at the first power of 2 that comes after 1 million function calls or traversed back-edges (takes less than a second on usual programs). After the first emission, an unsilenceable warning is repeated at every following power of 2 terminators, causing it to get reported less and less the longer the evaluation runs. cc `@rust-lang/wg-const-eval` fixes #93481 closes #67217
2 parents b025c0b + 53f1125 commit f5b2fed

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

crates/hir-def/src/builtin_attr.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -195,10 +195,6 @@ pub const INERT_ATTRIBUTES: &[BuiltinAttribute] = &[
195195
// Limits:
196196
ungated!(recursion_limit, CrateLevel, template!(NameValueStr: "N"), FutureWarnFollowing),
197197
ungated!(type_length_limit, CrateLevel, template!(NameValueStr: "N"), FutureWarnFollowing),
198-
gated!(
199-
const_eval_limit, CrateLevel, template!(NameValueStr: "N"), ErrorFollowing,
200-
const_eval_limit, experimental!(const_eval_limit)
201-
),
202198
gated!(
203199
move_size_limit, CrateLevel, template!(NameValueStr: "N"), ErrorFollowing,
204200
large_assignments, experimental!(move_size_limit)

0 commit comments

Comments
 (0)