rust/compiler
Jubilee 126d809287
Rollup merge of #113741 - compiler-errors:rpitit-projects-to-missing-opaque, r=spastorino
Don't install default projection bound for return-position `impl Trait` in trait methods with no body

This ensures that we never try to project to an opaque type in a trait method that has no body to infer its hidden type, which means we never later call `type_of` on that opaque. This is because opaque types try to reveal their hidden type when proving auto traits.

I thought about this a lot, and I think this is a fix that's less likely to introduce other strange downstream ICEs than #113461.

Fixes #113434

r? `@spastorino`
2023-07-30 17:50:48 -07:00
..
rustc inline format!() args up to and including rustc_middle 2023-07-30 13:18:33 +02:00
rustc_abi inline format!() args up to and including rustc_middle 2023-07-30 13:18:33 +02:00
rustc_arena
rustc_ast
rustc_ast_lowering Lower generic const items to HIR 2023-07-28 22:21:40 +02:00
rustc_ast_passes inline format!() args up to and including rustc_middle 2023-07-30 13:18:33 +02:00
rustc_ast_pretty
rustc_attr
rustc_baked_icu_data
rustc_borrowck
rustc_builtin_macros inline format!() args up to and including rustc_middle 2023-07-30 13:18:33 +02:00
rustc_codegen_cranelift
rustc_codegen_gcc
rustc_codegen_llvm inline format!() args up to and including rustc_codegen_llvm 2023-07-30 14:22:50 +02:00
rustc_codegen_ssa inline format!() args up to and including rustc_codegen_llvm 2023-07-30 14:22:50 +02:00
rustc_const_eval Rollup merge of #113773 - compiler-errors:err-layout-bail, r=cjgillot 2023-07-29 06:13:05 +02:00
rustc_data_structures [rustc][data_structures] Simplify binary_search_slice. 2023-07-29 07:22:56 -07:00
rustc_driver
rustc_driver_impl
rustc_error_codes
rustc_error_messages inline format!() args up to and including rustc_middle 2023-07-30 13:18:33 +02:00
rustc_errors Rollup merge of #114068 - matthiaskrgr:fmt_args_rustc_1, r=WaffleLapkin 2023-07-30 14:25:09 +02:00
rustc_expand inline format!() args up to and including rustc_middle 2023-07-30 13:18:33 +02:00
rustc_feature Mark lazy_type_alias as incomplete 2023-07-29 19:47:15 +00:00
rustc_fluent_macro
rustc_fs_util
rustc_graphviz
rustc_hir Lower generic const items to HIR 2023-07-28 22:21:40 +02:00
rustc_hir_analysis Mark map_or as #[must_use] 2023-07-30 10:22:23 +00:00
rustc_hir_pretty Lower generic const items to HIR 2023-07-28 22:21:40 +02:00
rustc_hir_typeck Rollup merge of #114256 - Urgau:fix-issue-114180, r=WaffleLapkin 2023-07-30 20:36:35 +02:00
rustc_incremental inline format!() args up to and including rustc_codegen_llvm 2023-07-30 14:22:50 +02:00
rustc_index
rustc_infer inline format!() args up to and including rustc_codegen_llvm 2023-07-30 14:22:50 +02:00
rustc_interface
rustc_lexer
rustc_lint Auto merge of #113422 - Urgau:cast_ref_to_mut-pre-beta, r=Nilstrieb 2023-07-29 07:48:44 +00:00
rustc_lint_defs
rustc_llvm
rustc_log inline format!() args up to and including rustc_middle 2023-07-30 13:18:33 +02:00
rustc_macros inline format!() args up to and including rustc_middle 2023-07-30 13:18:33 +02:00
rustc_metadata Rollup merge of #113741 - compiler-errors:rpitit-projects-to-missing-opaque, r=spastorino 2023-07-30 17:50:48 -07:00
rustc_middle Rollup merge of #114068 - matthiaskrgr:fmt_args_rustc_1, r=WaffleLapkin 2023-07-30 14:25:09 +02:00
rustc_mir_build Lower generic const items to HIR 2023-07-28 22:21:40 +02:00
rustc_mir_dataflow inline format!() args up to and including rustc_codegen_llvm 2023-07-30 14:22:50 +02:00
rustc_mir_transform inline format!() args up to and including rustc_middle 2023-07-30 13:18:33 +02:00
rustc_monomorphize
rustc_parse Rollup merge of #114256 - Urgau:fix-issue-114180, r=WaffleLapkin 2023-07-30 20:36:35 +02:00
rustc_parse_format
rustc_passes Lower generic const items to HIR 2023-07-28 22:21:40 +02:00
rustc_plugin_impl
rustc_privacy Weaken unnameable_types lint 2023-07-30 14:02:21 +03:00
rustc_query_impl
rustc_query_system inline format!() args up to and including rustc_middle 2023-07-30 13:18:33 +02:00
rustc_resolve inline format!() args up to and including rustc_codegen_llvm 2023-07-30 14:22:50 +02:00
rustc_serialize
rustc_session inline format!() args up to and including rustc_middle 2023-07-30 13:18:33 +02:00
rustc_smir inline format!() args up to and including rustc_codegen_llvm 2023-07-30 14:22:50 +02:00
rustc_span Simplify Span::can_be_used_for_suggestions a little tiny bit 2023-07-30 15:37:39 +00:00
rustc_symbol_mangling
rustc_target
rustc_trait_selection inline format!() args up to and including rustc_codegen_llvm 2023-07-30 14:22:50 +02:00
rustc_traits
rustc_transmute
rustc_ty_utils Don't install default projection bound for RPITITs 2023-07-30 21:46:29 +00:00
rustc_type_ir inline format!() args up to and including rustc_middle 2023-07-30 13:18:33 +02:00