rust/compiler/rustc_middle/src/query
bors 3ff1b6410e Auto merge of #135167 - mzacho:depth-limit-const-eval-query, r=oli-obk
Depth limit const eval query

Currently the const-eval query doesn't have a recursion limit or timeout, causing the complier to freeze in an infinite loop, see #125718. This PR depth limits the `eval_to_const_value_raw` query (with the [`recursion_limit`](https://doc.rust-lang.org/reference/attributes/limits.html) attribute) and improves the diagnostics for query overflow errors, so spans are reported for other dep kinds than `layout_of` (e.g. `eval_to_const_value_raw`).

fixes #125718
fixes #114192
2025-01-13 10:18:26 +00:00
..
erase.rs Remove the now-useless Result from lit_to_const 2025-01-09 08:48:46 +00:00
keys.rs Re-export more rustc_span::symbol things from rustc_span. 2024-12-18 13:38:53 +11:00
mod.rs Auto merge of #135167 - mzacho:depth-limit-const-eval-query, r=oli-obk 2025-01-13 10:18:26 +00:00
on_disk_cache.rs Re-export more rustc_span::symbol things from rustc_span. 2024-12-18 13:38:53 +11:00
plumbing.rs (Re-)Implement impl_trait_in_bindings 2024-12-14 03:21:24 +00:00