rust/compiler
Matthias Krüger 0e08d7002b
Rollup merge of #130715 - compiler-errors:mir-build-const-eval, r=BoxyUwU
Replace calls to `ty::Const::{try_}eval` in mir build/pattern analysis

We normalize consts in writeback: #130645. This means that consts are gonna be as normalized as they're ever gonna get in MIR building and pattern analysis. Therefore we can just use `try_to_target_usize` rather than calling `eval_target_usize`.

Regarding the `.expect` calls, I'm not totally certain whether they're correct given rigid unevaluated consts. But this PR shouldn't make *more* ICEs occur; we may have to squash these ICEs when mGCE comes around, tho 😺
2024-09-23 06:45:36 +02:00
..
rustc disable size asserts in the compiler when randomizing layouts 2024-08-31 23:56:45 +02:00
rustc_abi Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
rustc_arena Remove unnecessary lifetimes from Arena. 2024-09-13 15:33:19 +10:00
rustc_ast Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
rustc_ast_ir Add warn(unreachable_pub) to several crates. 2024-08-16 08:46:13 +10:00
rustc_ast_lowering Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
rustc_ast_passes Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
rustc_ast_pretty Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
rustc_attr Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
rustc_baked_icu_data Don't add warn(unreachable_pub) to rustc_baked_icu. 2024-08-16 08:46:52 +10:00
rustc_borrowck Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
rustc_builtin_macros Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
rustc_codegen_cranelift Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
rustc_codegen_gcc Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
rustc_codegen_llvm Auto merge of #130724 - compiler-errors:bump, r=Mark-Simulacrum 2024-09-23 02:02:22 +00:00
rustc_codegen_ssa Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
rustc_const_eval Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
rustc_data_structures Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
rustc_driver Use tidy to sort crate attributes for all compiler crates. 2024-06-12 15:49:10 +10:00
rustc_driver_impl Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
rustc_error_codes mark E0775 as no longer emitte by the compiler 2024-09-21 13:09:09 +02:00
rustc_error_messages Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
rustc_errors Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
rustc_expand Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
rustc_feature Rollup merge of #130705 - compiler-errors:rtn-complete, r=jackh726 2024-09-23 06:45:34 +02:00
rustc_fluent_macro Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
rustc_fs_util Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
rustc_graphviz Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
rustc_hir Rollup merge of #130714 - compiler-errors:try-structurally-resolve-const, r=BoxyUwU 2024-09-23 06:45:36 +02:00
rustc_hir_analysis Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
rustc_hir_pretty Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
rustc_hir_typeck Rollup merge of #130714 - compiler-errors:try-structurally-resolve-const, r=BoxyUwU 2024-09-23 06:45:36 +02:00
rustc_incremental Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
rustc_index Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
rustc_index_macros Remove usage of specialization from newtype_index! 2024-06-30 16:42:53 +00:00
rustc_infer Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
rustc_interface Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
rustc_lexer Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
rustc_lint Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
rustc_lint_defs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
rustc_llvm Auto merge of #130446 - durin42:llvm-20-fix-CommandLineArgs, r=workingjubilee 2024-09-22 05:26:41 +00:00
rustc_log Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
rustc_macros Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
rustc_metadata Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
rustc_middle Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
rustc_mir_build Rollup merge of #130715 - compiler-errors:mir-build-const-eval, r=BoxyUwU 2024-09-23 06:45:36 +02:00
rustc_mir_dataflow Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
rustc_mir_transform Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
rustc_monomorphize Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
rustc_next_trait_solver Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
rustc_parse Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
rustc_parse_format Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
rustc_passes Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
rustc_pattern_analysis Rollup merge of #130715 - compiler-errors:mir-build-const-eval, r=BoxyUwU 2024-09-23 06:45:36 +02:00
rustc_privacy Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
rustc_query_impl Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
rustc_query_system Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
rustc_resolve Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
rustc_sanitizers Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
rustc_serialize Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
rustc_session Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
rustc_smir Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
rustc_span Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
rustc_symbol_mangling Rollup merge of #130344 - Jaic1:fix-116306, r=BoxyUwU 2024-09-23 06:45:33 +02:00
rustc_target Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
rustc_trait_selection Rollup merge of #130714 - compiler-errors:try-structurally-resolve-const, r=BoxyUwU 2024-09-23 06:45:36 +02:00
rustc_traits Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
rustc_transmute Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
rustc_ty_utils Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
rustc_type_ir Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
rustc_type_ir_macros Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
stable_mir Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00