rust/compiler/rustc_middle/src
Jacob Pratt 81f742954a
Rollup merge of #134498 - oli-obk:push-wmxynprsyxvr, r=compiler-errors
Fix cycle error only occurring with -Zdump-mir

fixes #134205

During mir dumping, we evaluate static items to render their allocations. If a static item refers to itself, its own MIR will have a reference to itself, so during mir dumping we end up evaluating the static again, causing us to try to build MIR again (mir dumping happens during MIR building).

Thus I disabled evaluation of statics during MIR dumps in case the MIR body isn't far enough along yet to be able to be guaranteed cycle free.
2025-01-13 20:43:44 -05: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 Rollup merge of #134498 - oli-obk:push-wmxynprsyxvr, r=compiler-errors 2025-01-13 20:43:44 -05: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