rust/compiler
Matthias Krüger cea5ae00d2
Rollup merge of #112810 - compiler-errors:dont-ice-on-bad-layout, r=wesleywiser
Don't ICE on unnormalized struct tail in layout computation

1. We try to compute a `SizeSkeleton` even if a layout error occurs, but we really only need to do this if we get `LayoutError::Unknown`, since that means our type is too polymorphic to actually compute the full layout. If we have other errors, like `LayoutError::NormalizationError` or `LayoutError::Cycle`, then we can't really make any progress, since this represents an actual error.
2. Avoid using `normalize_erasing_regions` and `struct_tail_erasing_lifetimes` since those ICE on normalization errors, and since we may call `layout_of` in HIR typeck, we don't know for certain that we're on the happy path.

Fixes #112736
2023-06-23 19:39:58 +02:00
..
rustc
rustc_abi Auto merge of #112062 - lukas-code:unsized-layout, r=wesleywiser 2023-06-13 22:34:59 +00:00
rustc_apfloat
rustc_arena Extend unused_must_use to cover block exprs 2023-06-15 17:59:13 +08:00
rustc_ast Syntatically accept become expressions 2023-06-19 12:54:34 +00:00
rustc_ast_lowering Syntatically accept become expressions 2023-06-19 12:54:34 +00:00
rustc_ast_passes Syntatically accept become expressions 2023-06-19 12:54:34 +00:00
rustc_ast_pretty Syntatically accept become expressions 2023-06-19 12:54:34 +00:00
rustc_attr Ensure Fluent messages are in alphabetical order 2023-05-25 23:49:35 +00:00
rustc_baked_icu_data
rustc_borrowck Rollup merge of #112933 - TaKO8Ki:avoid-&format-in-error-message-code, r=oli-obk 2023-06-23 13:18:14 +02:00
rustc_builtin_macros Rollup merge of #112790 - WaffleLapkin:syntactically, r=Nilstrieb 2023-06-21 07:37:02 +02:00
rustc_codegen_cranelift Rollup merge of #112232 - fee1-dead-contrib:match-eq-const-msg, r=b-naber 2023-06-19 17:53:33 -07:00
rustc_codegen_gcc Auto merge of #112814 - antoyo:sync-cg_gcc-2023-06-19, r=bjorn3 2023-06-22 02:11:08 +00:00
rustc_codegen_llvm Store generator field names in GeneratorLayout. 2023-06-19 16:50:52 +00:00
rustc_codegen_ssa Remove unused fields from CodegenContext. 2023-06-22 09:07:19 +10:00
rustc_const_eval address most easy comments 2023-06-20 20:55:31 +08:00
rustc_data_structures Rollup merge of #112538 - ndrewxie:issue-84447-partial-1, r=compiler-errors 2023-06-21 20:00:49 +02:00
rustc_driver fix spelling error 2023-06-05 16:01:09 +02:00
rustc_driver_impl Avoid Lrc<Box<dyn CodegenBackend>>. 2023-06-22 09:18:09 +10:00
rustc_error_codes Implement custom diagnostic for ConstParamTy 2023-06-01 18:21:42 +00:00
rustc_error_messages Use translatable diagnostics in rustc_const_eval 2023-06-01 14:45:18 +00:00
rustc_errors s/drain_filter/extract_if/ for Vec, Btree{Map,Set} and LinkedList 2023-06-14 09:28:54 +02:00
rustc_expand Fix msg passed to span_bug 2023-06-21 16:54:54 +05:30
rustc_feature Rollup merge of #112853 - GuillaumeGomez:type_alias_type, r=oli-obk 2023-06-21 15:45:16 +02:00
rustc_fluent_macro
rustc_fs_util
rustc_graphviz
rustc_hir Auto merge of #100036 - DrMeepster:box_free_free_box, r=oli-obk 2023-06-17 16:10:57 +00:00
rustc_hir_analysis Rollup merge of #112868 - compiler-errors:liberate-afit-sugg, r=WaffleLapkin 2023-06-21 20:00:50 +02:00
rustc_hir_pretty Separate AnonConst from ConstBlock in HIR. 2023-06-02 21:25:18 +00:00
rustc_hir_typeck Rollup merge of #112643 - compiler-errors:sized-obl-for-arg, r=wesleywiser 2023-06-23 19:39:57 +02:00
rustc_incremental Applied nits 2023-06-11 22:45:04 -04:00
rustc_index Auto merge of #111925 - Manishearth:rollup-z6z6l2v, r=Manishearth 2023-05-25 00:33:43 +00:00
rustc_infer Rollup merge of #112772 - compiler-errors:clauses-1, r=lcnr 2023-06-21 07:37:01 +02:00
rustc_interface Avoid Lrc<Box<dyn CodegenBackend>>. 2023-06-22 09:18:09 +10:00
rustc_lexer
rustc_lint s/Clause/ClauseKind 2023-06-19 14:57:42 +00:00
rustc_lint_defs Private-in-public lints implementation 2023-06-12 01:02:19 +03:00
rustc_llvm Add SafeStack support to rustc 2023-05-26 15:18:54 -04:00
rustc_log
rustc_macros avoid &format in error message code 2023-06-23 02:17:39 +09:00
rustc_metadata Rollup merge of #112772 - compiler-errors:clauses-1, r=lcnr 2023-06-21 07:37:01 +02:00
rustc_middle Rollup merge of #112810 - compiler-errors:dont-ice-on-bad-layout, r=wesleywiser 2023-06-23 19:39:58 +02:00
rustc_mir_build Rollup merge of #112759 - cjgillot:closure-names, r=oli-obk 2023-06-21 07:37:01 +02:00
rustc_mir_dataflow merge BorrowKind::Unique into BorrowKind::Mut 2023-06-20 20:55:31 +08:00
rustc_mir_transform Auto merge of #112834 - oli-obk:mir_opts_considered_unsound, r=cjgillot 2023-06-21 10:53:30 +00:00
rustc_monomorphize Tweak CGU size estimate code. 2023-06-22 09:33:06 +10:00
rustc_parse Syntatically accept become expressions 2023-06-19 12:54:34 +00:00
rustc_parse_format
rustc_passes Rollup merge of #112790 - WaffleLapkin:syntactically, r=Nilstrieb 2023-06-21 07:37:02 +02:00
rustc_plugin_impl
rustc_privacy Fully fledged Clause type 2023-06-19 15:46:08 +00:00
rustc_query_impl Make queries traceable again 2023-06-21 10:25:25 +00:00
rustc_query_system Rollup merge of #112333 - Zoxc:try_collect_active_jobs-deadlock, r=cjgillot 2023-06-08 12:36:18 +02:00
rustc_resolve Tweak privacy errors to account for reachable items 2023-06-22 16:50:31 +00:00
rustc_serialize
rustc_session add -Z flag 2023-06-19 09:01:37 +01:00
rustc_smir Rollup merge of #112232 - fee1-dead-contrib:match-eq-const-msg, r=b-naber 2023-06-19 17:53:33 -07:00
rustc_span Rollup merge of #112853 - GuillaumeGomez:type_alias_type, r=oli-obk 2023-06-21 15:45:16 +02:00
rustc_symbol_mangling Add AliasKind::Weak for type aliases. 2023-06-16 19:39:48 +00:00
rustc_target Reorder tvos_* functions in apple_base.rs to avoid breaking sorted order 2023-06-21 14:59:40 -07:00
rustc_trait_selection Avoid guessing unknown trait impl in suggestions 2023-06-22 16:37:52 -07:00
rustc_traits s/Clause/ClauseKind 2023-06-19 14:57:42 +00:00
rustc_transmute Safe Transmute: Refactor error handling and Answer type 2023-06-12 16:56:21 -07:00
rustc_ty_utils Rollup merge of #112810 - compiler-errors:dont-ice-on-bad-layout, r=wesleywiser 2023-06-23 19:39:58 +02:00
rustc_type_ir Add AliasKind::Weak for type aliases. 2023-06-16 19:39:48 +00:00