rust/compiler
Dylan DPC d83abe8c12
Rollup merge of #100522 - cjgillot:inline-polymorphic-recursion, r=tmiasko
Only check the `DefId` for the recursion check in MIR inliner.

The current history check compares `Instance`s, so it cannot detect cases of polymorphic recursion where `Substs` change.
This PR makes it so we only compare `DefId`s, ignoring any change in `Substs`.

According to https://github.com/rust-lang/rust/pull/100522#issuecomment-1214769757, in practice only very few inlining decisions change.

Fixes https://github.com/rust-lang/rust/issues/100476
2022-08-19 12:26:43 +05:30
..
rustc
rustc_apfloat
rustc_arena Stabilize ptr_const_cast 2022-08-10 17:22:58 +02:00
rustc_ast Rollup merge of #100018 - nnethercote:clean-up-LitKind, r=petrochenkov 2022-08-17 12:32:49 +02:00
rustc_ast_lowering Rollup merge of #100018 - nnethercote:clean-up-LitKind, r=petrochenkov 2022-08-17 12:32:49 +02:00
rustc_ast_passes Adjust cfgs 2022-08-12 16:28:15 -04:00
rustc_ast_pretty Rollup merge of #100018 - nnethercote:clean-up-LitKind, r=petrochenkov 2022-08-17 12:32:49 +02:00
rustc_attr Adjust cfgs 2022-08-12 16:28:15 -04:00
rustc_borrowck Fix #95079 by adding help and suggestion for missing move in nested closure 2022-08-15 11:20:32 -07:00
rustc_builtin_macros Auto merge of #98655 - nnethercote:dont-derive-PartialEq-ne, r=dtolnay 2022-08-18 10:11:11 +00:00
rustc_codegen_cranelift Rollup merge of #100208 - RalfJung:dyn-upcast-nop, r=petrochenkov 2022-08-19 12:26:41 +05:30
rustc_codegen_gcc
rustc_codegen_llvm Rollup merge of #100460 - cuviper:drop-llvm-12, r=nagisa 2022-08-16 06:05:57 +02:00
rustc_codegen_ssa Rollup merge of #100208 - RalfJung:dyn-upcast-nop, r=petrochenkov 2022-08-19 12:26:41 +05:30
rustc_const_eval Rollup merge of #100208 - RalfJung:dyn-upcast-nop, r=petrochenkov 2022-08-19 12:26:41 +05:30
rustc_data_structures needless separation of impl blocks 2022-08-16 03:46:45 +02:00
rustc_driver
rustc_error_codes
rustc_error_messages Rollup merge of #99576 - compiler-errors:foreign-fundamental-drop-is-bad, r=TaKO8Ki 2022-08-19 12:26:38 +05:30
rustc_errors Rollup merge of #100081 - RalfJung:unused-unsafe-in-unsafe-fn, r=jackh726 2022-08-19 12:26:40 +05:30
rustc_expand Rollup merge of #100669 - nnethercote:attribute-cleanups, r=spastorino 2022-08-18 05:10:48 +02:00
rustc_feature Add missing closing quote 2022-08-15 15:57:55 +08:00
rustc_fs_util
rustc_graphviz
rustc_hir Rollup merge of #100610 - nnethercote:ast-and-parser-tweaks, r=spastorino 2022-08-16 18:16:13 +05:30
rustc_hir_pretty Rename some things related to literals. 2022-08-16 13:41:34 +10:00
rustc_incremental
rustc_index debuginfo: Change C++-like encoding for enums. 2022-08-12 10:53:07 +02:00
rustc_infer Auto merge of #99860 - oli-obk:revert_97346, r=pnkfelix 2022-08-18 15:41:30 +00:00
rustc_interface Migrate emoji identifier diagnostics to SessionDiagnostic 2022-08-17 05:07:47 +09:00
rustc_lexer
rustc_lint Rename some things related to literals. 2022-08-16 13:41:34 +10:00
rustc_lint_defs
rustc_llvm Rollup merge of #100460 - cuviper:drop-llvm-12, r=nagisa 2022-08-16 06:05:57 +02:00
rustc_log
rustc_macros Change fluent_messages macro to expect _ slugs instead of - slugs 2022-08-12 22:26:08 +02:00
rustc_metadata cache strings while encoding/decoding to compiler artifacts 2022-08-15 17:56:37 +03:00
rustc_middle Rollup merge of #100081 - RalfJung:unused-unsafe-in-unsafe-fn, r=jackh726 2022-08-19 12:26:40 +05:30
rustc_mir_build Rollup merge of #100081 - RalfJung:unused-unsafe-in-unsafe-fn, r=jackh726 2022-08-19 12:26:40 +05:30
rustc_mir_dataflow
rustc_mir_transform Rollup merge of #100522 - cjgillot:inline-polymorphic-recursion, r=tmiasko 2022-08-19 12:26:43 +05:30
rustc_monomorphize Refuse to codegen an upstream static. 2022-08-10 18:30:12 +02:00
rustc_parse Rollup merge of #100670 - Xiretza:parser-stmt-force-collect-docs, r=davidtwco 2022-08-18 05:10:49 +02:00
rustc_parse_format
rustc_passes Rollup merge of #100031 - GoldsteinE:try-removing-the-field, r=michaelwoerister 2022-08-15 20:11:32 +02:00
rustc_plugin_impl
rustc_privacy Adjust cfgs 2022-08-12 16:28:15 -04:00
rustc_query_impl Auto merge of #98851 - klensy:encode_symbols, r=cjgillot 2022-08-18 23:53:22 +00:00
rustc_query_system Auto merge of #100441 - nnethercote:shrink-ast-Attribute, r=petrochenkov 2022-08-16 07:54:22 +00:00
rustc_resolve Rollup merge of #100643 - TaKO8Ki:point-at-type-parameter-shadowing-another-type, r=estebank 2022-08-18 05:10:46 +02:00
rustc_save_analysis
rustc_serialize
rustc_session Revert "Revert "Remove num_cpus dependency from bootstrap, build-manifest and rustc_session"" 2022-08-15 16:24:07 +02:00
rustc_smir
rustc_span Auto merge of #98851 - klensy:encode_symbols, r=cjgillot 2022-08-18 23:53:22 +00:00
rustc_symbol_mangling
rustc_target Rollup merge of #100621 - taiki-e:armv4t-atomics-32, r=cuviper 2022-08-17 12:32:55 +02:00
rustc_trait_selection Reword "Required because of the requirements on the impl of ..." 2022-08-18 21:08:08 +01:00
rustc_traits
rustc_transmute
rustc_ty_utils
rustc_type_ir
rustc_typeck Rollup merge of #99576 - compiler-errors:foreign-fundamental-drop-is-bad, r=TaKO8Ki 2022-08-19 12:26:38 +05:30