rust/compiler
bors d14e52b47a Auto merge of #117884 - bvanjoi:fix-117794, r=compiler-errors
skip rpit constraint checker if borrowck return type error

Fixes #117794
Fixes #117886
Fixes #119025

Prior to change #117418, the value of `concrete_opaque_types` for `mir_borrock(T:🅰️:opaque)` was `None`. However, due to modifications in `body.local_decls`, the return value had been changed.

The changed of `body.local_decls` has let to the addition of `ty:Error` to `infcx.opaque_type_storage.opaque_types` during `TypeChecker::equate_inputs_and_outputs`. This is due to it utilizing the output of a function signature that was appended during `construct_error`(which previously only appended a `ty::Error`) and then execute `TypeChecker::Related_types`.

Therefore, in this PR, I've implemented a condition to bypass the rpit check when an error is encountered.

r? `@compiler-errors`
2023-12-17 16:28:37 +00:00
..
rustc Clean up rustc_*/Cargo.toml. 2023-10-30 08:46:02 +11:00
rustc_abi Annotate panic! reasons during enum layout 2023-12-15 02:21:31 -08:00
rustc_arena rustc_arena: add alloc_str 2023-12-05 17:52:51 -08:00
rustc_ast Auto merge of #118897 - nnethercote:more-unescaping-cleanups, r=fee1-dead 2023-12-16 08:52:06 +00:00
rustc_ast_lowering Rollup merge of #119004 - matthiaskrgr:conv, r=compiler-errors 2023-12-15 21:33:00 -08:00
rustc_ast_passes Correctly gate the parsing of match arms without body 2023-12-12 14:42:04 +01:00
rustc_ast_pretty Rollup merge of #118726 - dtolnay:matchguardlet, r=compiler-errors 2023-12-11 20:46:49 +01:00
rustc_attr Use Session::diagnostic in more places. 2023-12-02 09:01:35 +11:00
rustc_baked_icu_data Bump cfg(bootstrap)s 2023-11-15 19:41:28 -05:00
rustc_borrowck banish hir::GenericBound::LangItemTrait 2023-12-15 16:17:27 +00:00
rustc_builtin_macros Avoid struct_diagnostic where possible. 2023-12-14 15:53:55 +11:00
rustc_codegen_cranelift update use of feature flags 2023-12-14 15:22:37 +01:00
rustc_codegen_gcc Auto merge of #118828 - mu001999:master, r=b-naber 2023-12-17 12:15:56 +00:00
rustc_codegen_llvm Rollup merge of #119004 - matthiaskrgr:conv, r=compiler-errors 2023-12-15 21:33:00 -08:00
rustc_codegen_ssa Don't pass lint back out of lint decorator 2023-12-15 16:05:36 +00:00
rustc_const_eval Rollup merge of #118933 - nnethercote:cleanup-errors-even-more, r=compiler-errors 2023-12-14 16:07:48 -08:00
rustc_data_structures NFC don't convert types to identical types 2023-12-15 23:56:24 +01:00
rustc_driver Bump cfg(bootstrap)s 2023-11-15 19:41:28 -05:00
rustc_driver_impl clippy::complexity fixes 2023-12-12 19:28:13 +01:00
rustc_error_codes Remove edition umbrella features. 2023-12-10 13:03:28 -08:00
rustc_error_messages Remove rustc_error_messages/messages.ftl. 2023-11-26 08:37:27 +11:00
rustc_errors Rollup merge of #118993 - jyn514:cfg-color, r=WaffleLapkin,Nilstrieb 2023-12-15 21:32:59 -08:00
rustc_expand Auto merge of #118830 - GuillaumeGomez:env-tracked_env, r=Nilstrieb 2023-12-17 04:23:08 +00:00
rustc_feature Remove edition umbrella features. 2023-12-10 13:03:28 -08:00
rustc_fluent_macro Add a useful comment. 2023-11-26 08:38:02 +11:00
rustc_fs_util Clean up rustc_*/Cargo.toml. 2023-10-30 08:46:02 +11:00
rustc_graphviz remove unused pub fn 2023-11-23 14:11:02 +03:00
rustc_hir Rollup merge of #119004 - matthiaskrgr:conv, r=compiler-errors 2023-12-15 21:33:00 -08:00
rustc_hir_analysis skip rpit constraint check if borrowck return type error 2023-12-17 16:49:00 +08:00
rustc_hir_pretty Rollup merge of #118396 - compiler-errors:ast-lang-items, r=cjgillot 2023-12-15 14:08:15 -08:00
rustc_hir_typeck Rollup merge of #119004 - matthiaskrgr:conv, r=compiler-errors 2023-12-15 21:33:00 -08:00
rustc_incremental Move some methods from tcx.hir() to tcx 2023-12-12 06:40:29 -08:00
rustc_index Replace no_ord_impl with orderable. 2023-11-22 18:38:17 +11:00
rustc_index_macros Put backticks around some attributes in doc comments. 2023-11-27 09:37:01 +11:00
rustc_infer Rollup merge of #119004 - matthiaskrgr:conv, r=compiler-errors 2023-12-15 21:33:00 -08:00
rustc_interface rename -Ztrait-solver to -Znext-solver 2023-12-14 15:22:37 +01:00
rustc_lexer Rename some unescaping functions. 2023-12-13 14:17:50 +11:00
rustc_lint Rollup merge of #118989 - compiler-errors:lint-decorator-2, r=WaffleLapkin 2023-12-15 21:32:58 -08:00
rustc_lint_defs Remove the lint outright 2023-12-16 01:28:06 +00:00
rustc_llvm Auto merge of #110494 - majaha:noTrapAfterNoreturn, r=nikic 2023-12-16 18:55:01 +00:00
rustc_log rustc_log: provide a way to init logging based on the values, not names, of the env vars 2023-11-11 15:24:33 +01:00
rustc_macros Simplify lint decorator derive too 2023-12-16 02:07:01 +00:00
rustc_metadata Move some methods from tcx.hir() to tcx 2023-12-12 06:40:29 -08:00
rustc_middle Rollup merge of #119003 - matthiaskrgr:nein_clone, r=Nadrieril 2023-12-15 21:33:00 -08:00
rustc_mir_build Rollup merge of #118962 - compiler-errors:bugs, r=TaKO8Ki 2023-12-15 15:53:51 +01:00
rustc_mir_dataflow NFC don't convert types to identical types 2023-12-15 23:56:24 +01:00
rustc_mir_transform Rollup merge of #119004 - matthiaskrgr:conv, r=compiler-errors 2023-12-15 21:33:00 -08:00
rustc_monomorphize Auto merge of #118770 - saethlin:fix-inline-never-uses, r=nnethercote 2023-12-15 04:54:14 +00:00
rustc_next_trait_solver Opportunistically resolve region var in canonicalizer 2023-12-15 05:02:37 +00:00
rustc_parse Auto merge of #118897 - nnethercote:more-unescaping-cleanups, r=fee1-dead 2023-12-16 08:52:06 +00:00
rustc_parse_format Auto merge of #117819 - fmease:rustc_parse_format-stable-rustc, r=Nilstrieb 2023-11-15 14:55:35 +00:00
rustc_passes Fix enforcement of generics for associated items 2023-12-15 16:17:28 +00:00
rustc_pattern_analysis NFC: do not clone types that are copy 2023-12-15 23:19:51 +01:00
rustc_privacy Move some methods from tcx.hir() to tcx 2023-12-12 06:40:29 -08:00
rustc_query_impl QueryContext: rename try_collect_active_jobs -> collect_active_jobs and change it's return type from Option<QueryMap> to QueryMap 2023-11-27 18:13:15 +03:00
rustc_query_system Rollup merge of #118933 - nnethercote:cleanup-errors-even-more, r=compiler-errors 2023-12-14 16:07:48 -08:00
rustc_resolve NFC don't convert types to identical types 2023-12-15 23:56:24 +01:00
rustc_serialize Call FileEncoder::finish in rmeta encoding 2023-11-22 22:49:22 -05:00
rustc_session NFC don't convert types to identical types 2023-12-15 23:56:24 +01:00
rustc_smir Auto merge of #119000 - celinval:smir-cstr, r=ouz-a 2023-12-17 08:18:17 +00:00
rustc_span Auto merge of #117758 - Urgau:lint_pointer_trait_comparisons, r=davidtwco 2023-12-11 14:33:16 +00:00
rustc_symbol_mangling Typo 2023-12-12 13:48:20 -05:00
rustc_target Move rustc_codegen_ssa target features to rustc_target 2023-12-14 14:40:55 +01:00
rustc_trait_selection Rollup merge of #119004 - matthiaskrgr:conv, r=compiler-errors 2023-12-15 21:33:00 -08:00
rustc_traits add unused NormalizesTo predicate 2023-12-07 17:52:51 +01:00
rustc_transmute Update itertools to 0.11. 2023-11-22 08:13:21 +11:00
rustc_ty_utils Rollup merge of #118871 - tmiasko:coroutine-maybe-uninit-fields, r=compiler-errors 2023-12-13 18:03:33 +01:00
rustc_type_ir Auto merge of #118970 - aliemjay:rollup-or33al2, r=aliemjay 2023-12-15 08:51:00 +00:00
stable_mir Add a method to check if type is a CStr 2023-12-15 13:18:41 -08:00