rust/compiler
Matthias Krüger 3fa9be9094
Rollup merge of #106665 - JulianKnodt:better_fn_trait_note, r=cjgillot
Add note when `FnPtr` vs. `FnDef` impl trait

I encountered an instance where an `FnPtr` implemented a trait, but I was passing an `FnDef`. I was confused for an hour and to examine the source code of the trait's crate's tests in order to understand how to cast it properly (it didn't help that it was behind a reference). To the end user, it might not be immediately obvious that they are different and how to convert from an `FnDef` to an `FnPtr`, but it is necessary to cast to the generic function in order to compile. It is thus useful to suggest `as` in the help note, (even if the `Fn` output implements the trait).
2023-01-14 13:04:25 +01:00
..
rustc
rustc_abi
rustc_apfloat
rustc_arena
rustc_ast parse const closures 2023-01-12 02:28:37 +00:00
rustc_ast_lowering Auto merge of #106776 - oli-obk:om_nom_nom_nom_nom, r=cjgillot 2023-01-13 13:57:21 +00:00
rustc_ast_passes gate const closures 2023-01-12 02:28:37 +00:00
rustc_ast_pretty parse const closures 2023-01-12 02:28:37 +00:00
rustc_attr Fix uninlined_format_args for some compiler crates 2023-01-05 19:01:12 +01:00
rustc_baked_icu_data
rustc_borrowck Rollup merge of #106641 - chenyukang:yukang/fix-105761-segguest-this, r=estebank 2023-01-13 19:16:43 +01:00
rustc_builtin_macros
rustc_codegen_cranelift Change src/test to tests in source files, fix tidy and tests 2023-01-11 09:32:13 +00:00
rustc_codegen_gcc Change src/test to tests in source files, fix tidy and tests 2023-01-11 09:32:13 +00:00
rustc_codegen_llvm Auto merge of #106646 - Amanieu:ilp32-object, r=Mark-Simulacrum 2023-01-14 08:33:09 +00:00
rustc_codegen_ssa Auto merge of #106646 - Amanieu:ilp32-object, r=Mark-Simulacrum 2023-01-14 08:33:09 +00:00
rustc_const_eval fix fmt and bless 2023-01-12 02:28:38 +00:00
rustc_data_structures Harden the pre-tyctxt query system against accidental recomputation 2023-01-12 09:26:28 +00:00
rustc_driver Rollup merge of #104645 - yukiomoto:log-backtrace-option, r=oli-obk 2023-01-13 19:16:41 +01:00
rustc_error_codes Rollup merge of #106714 - Ezrashaw:remove-e0490, r=davidtwco 2023-01-12 15:44:52 +01:00
rustc_error_messages Rollup merge of #106678 - Veykril:proc-macro-panic-abort, r=eholk 2023-01-13 19:16:43 +01:00
rustc_errors Rollup merge of #106427 - mejrs:translation_errors, r=davidtwco 2023-01-11 17:30:54 +01:00
rustc_expand Update rental hack to work with remapped paths. 2023-01-13 20:36:03 +00:00
rustc_feature Auto merge of #106004 - fee1-dead-contrib:const-closures, r=oli-obk 2023-01-13 05:04:48 +00:00
rustc_fs_util
rustc_graphviz Fix uninlined_format_args for some compiler crates 2023-01-05 19:01:12 +01:00
rustc_hir parse const closures 2023-01-12 02:28:37 +00:00
rustc_hir_analysis Rollup merge of #106585 - estebank:issue-46585, r=compiler-errors 2023-01-13 19:16:42 +01:00
rustc_hir_pretty parse const closures 2023-01-12 02:28:37 +00:00
rustc_hir_typeck Auto merge of #106092 - asquared31415:start_lang_item_checks, r=davidtwco 2023-01-13 07:45:34 +00:00
rustc_incremental
rustc_index Fix uninlined_format_args for some compiler crates 2023-01-05 19:01:12 +01:00
rustc_infer is_ty_infer -> is_ty_or_numeric_infer 2023-01-12 23:57:41 +00:00
rustc_interface Rollup merge of #106678 - Veykril:proc-macro-panic-abort, r=eholk 2023-01-13 19:16:43 +01:00
rustc_lexer
rustc_lint Auto merge of #106776 - oli-obk:om_nom_nom_nom_nom, r=cjgillot 2023-01-13 13:57:21 +00:00
rustc_lint_defs Bump IMPLIED_BOUNDS_ENTAILMENT to Deny + ReportNow 2023-01-12 20:44:54 +00:00
rustc_llvm rustc_llvm: replace llvm::makeArrayRef with ArrayRef constructors. 2023-01-11 11:25:15 -05:00
rustc_log Add log-backtrace option to show backtraces along with logging 2023-01-12 00:17:48 +09:00
rustc_macros Support eager subdiagnostics again 2023-01-11 14:20:34 -08:00
rustc_metadata attempt to make a minimal example work 2023-01-12 02:28:37 +00:00
rustc_middle Auto merge of #106776 - oli-obk:om_nom_nom_nom_nom, r=cjgillot 2023-01-13 13:57:21 +00:00
rustc_mir_build Rollup merge of #106097 - mejrs:mir_build2, r=oli-obk 2023-01-11 22:25:47 -08:00
rustc_mir_dataflow Fix uninlined_format_args for some compiler crates 2023-01-05 19:01:12 +01:00
rustc_mir_transform Change src/test to tests in source files, fix tidy and tests 2023-01-11 09:32:13 +00:00
rustc_monomorphize Delete unused polymorphization code 2023-01-09 19:10:00 +01:00
rustc_parse Rollup merge of #106566 - clubby789:contiguous-weird-unicode, r=cjgillot 2023-01-14 13:04:24 +01:00
rustc_parse_format Fix uninlined_format_args for some compiler crates 2023-01-05 19:01:12 +01:00
rustc_passes [RFC 2397] Deny incorrect locations 2023-01-12 08:41:21 -03:00
rustc_plugin_impl
rustc_privacy Change src/test to tests in source files, fix tidy and tests 2023-01-11 09:32:13 +00:00
rustc_query_impl Fix uninlined_format_args for some compiler crates 2023-01-05 19:01:12 +01:00
rustc_query_system Fix uninlined_format_args for some compiler crates 2023-01-05 19:01:12 +01:00
rustc_resolve Rollup merge of #106813 - oli-obk:sess_cleanup, r=GuillaumeGomez,petrochenkov 2023-01-13 19:16:45 +01:00
rustc_save_analysis rename get_parent_node to parent_id 2023-01-04 00:43:13 +00:00
rustc_serialize
rustc_session Rollup merge of #106709 - khuey:disable_split_dwarf_inlining_by_default, r=davidtwco 2023-01-11 17:30:56 +01:00
rustc_smir
rustc_span Rollup merge of #106707 - ehuss:remove-dupe-sha-1, r=Mark-Simulacrum 2023-01-14 12:04:34 +09:00
rustc_symbol_mangling Add type flags support for Ty and Const late-bound regions 2023-01-08 03:37:20 +00:00
rustc_target Stabilize abi_efiapi feature 2023-01-11 20:42:13 -05:00
rustc_trait_selection Add note when FnPtr vs. FnDef impl trait 2023-01-14 10:37:56 +00:00
rustc_traits Rollup merge of #106204 - compiler-errors:no-take-opaques-in-compare, r=oli-obk 2023-01-10 08:05:34 +09:00
rustc_transmute Fix uninlined_format_args for some compiler crates 2023-01-05 19:01:12 +01:00
rustc_ty_utils Change src/test to tests in source files, fix tidy and tests 2023-01-11 09:32:13 +00:00
rustc_type_ir Add type flags support for Ty and Const late-bound regions 2023-01-08 03:37:20 +00:00