rust/compiler/rustc_middle/src
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
..
dep_graph Re-export more rustc_span::symbol things from rustc_span. 2024-12-18 13:38:53 +11:00
hir Eagerly collect mono items for non-generic closures 2025-01-10 01:27:13 +00:00
hooks Move some code from Compiler::enter to GlobalCtxt::finish 2024-11-09 17:55:39 +00:00
infer remove non-borrowck member constraints 2024-12-20 10:04:01 +01:00
middle explicitly model that certain ABIs require/forbid certain target features 2024-12-31 12:41:20 +01:00
mir rename BitSet to DenseBitSet 2025-01-11 11:34:01 +00:00
query Auto merge of #135167 - mzacho:depth-limit-const-eval-query, r=oli-obk 2025-01-13 10:18:26 +00:00
thir Introduce default_field_values feature 2024-12-09 21:55:01 +00:00
traits Add derived causes for host effect predicates 2025-01-06 17:49:46 +00:00
ty Rollup merge of #135383 - BoxyUwU:cov_tag_ptr, r=compiler-errors 2025-01-12 23:08:58 +01:00
util Improve find_self_call with reborrowed receiver 2025-01-06 03:17:04 +00:00
arena.rs Re-export more rustc_span::symbol things from rustc_span. 2024-12-18 13:38:53 +11:00
error.rs Move some code from Compiler::enter to GlobalCtxt::finish 2024-11-09 17:55:39 +00:00
lib.rs move strict provenance lints to new feature gate, remove old feature gates 2024-10-21 15:22:17 +01:00
lint.rs Re-export more rustc_span::symbol things from rustc_span. 2024-12-18 13:38:53 +11:00
macros.rs Improve const traits diagnostics for new desugaring 2024-10-02 19:45:17 +08:00
metadata.rs Re-export more rustc_span::symbol things from rustc_span. 2024-12-18 13:38:53 +11:00
tests.rs Give an item related to issue 27438 a more meaningful name 2024-04-30 22:27:19 +02:00
thir.rs Introduce default_field_values feature 2024-12-09 21:55:01 +00:00
values.rs Rename ty_def_id so people will stop using it by accident 2024-12-13 16:36:38 +00:00