rust/compiler
bors 34bc5716b5 Auto merge of #116676 - estebank:issue-116658, r=compiler-errors
On type error involving closure, avoid ICE

When we encounter a type error involving a closure, we try to typeck prior closure invocations to see if they influenced the current expected type. When trying to do so, ensure that the closure was defined in our current scope.

Fix #116658.
2023-10-13 10:29:55 +00:00
..
rustc Split out the stable part of smir into its own crate to prevent accidental usage of forever unstable things 2023-09-25 14:38:27 +00:00
rustc_abi Remove unnecessary features from rustc_abi 2023-10-04 11:43:57 +02:00
rustc_arena rustdoc: remove rust logo from non-Rust crates 2023-10-08 20:17:53 -07:00
rustc_ast Use TokenStream::token_alone in one place. 2023-10-12 08:46:16 +11:00
rustc_ast_lowering Rollup merge of #116627 - fee1-dead-contrib:cleanup, r=spastorino 2023-10-11 20:08:22 +02:00
rustc_ast_passes Rollup merge of #116393 - compiler-errors:auto-bad, r=WaffleLapkin 2023-10-04 05:02:07 +02:00
rustc_ast_pretty Rename tt_prepend_space as space_between. 2023-10-12 08:50:42 +11:00
rustc_attr check-cfg: mention the unexpected name and value in the primary message 2023-10-12 18:39:04 +02:00
rustc_baked_icu_data Regen baked data 2023-05-02 10:45:16 -07:00
rustc_borrowck Auto merge of #113487 - estebank:sugg-113174, r=oli-obk 2023-10-12 02:34:07 +00:00
rustc_builtin_macros Don't escape_debug the condition of assert!. 2023-10-10 09:08:11 +11:00
rustc_codegen_cranelift Fix review comments 2023-10-09 18:39:43 +00:00
rustc_codegen_gcc Use IntoDynSyncSend 2023-10-09 17:13:35 -04:00
rustc_codegen_llvm Auto merge of #115964 - bjorn3:cgu_reuse_tracker_global_state, r=cjgillot 2023-10-13 00:09:30 +00:00
rustc_codegen_ssa Auto merge of #115964 - bjorn3:cgu_reuse_tracker_global_state, r=cjgillot 2023-10-13 00:09:30 +00:00
rustc_const_eval Auto merge of #116551 - RalfJung:nondet-nan, r=oli-obk 2023-10-10 11:42:27 +00:00
rustc_data_structures Remove unused dominator iterator 2023-10-10 21:39:59 +02:00
rustc_driver Update rustix 2023-07-03 07:20:51 +00:00
rustc_driver_impl Remove unneeded pubs. 2023-10-13 06:35:19 +11:00
rustc_error_codes Auto merge of #114811 - estebank:impl-ambiguity, r=wesleywiser 2023-10-06 18:44:32 +00:00
rustc_error_messages Bump cfg(bootstrap) 2023-08-23 20:05:14 -04:00
rustc_errors check-cfg: only print the list of expected names once 2023-10-12 18:39:35 +02:00
rustc_expand Add two setter functions to Features. 2023-10-05 18:01:11 +11:00
rustc_feature Use a closure when setting State::Active. 2023-10-05 19:56:19 +11:00
rustc_fluent_macro rustdoc: remove rust logo from non-Rust crates 2023-10-08 20:17:53 -07:00
rustc_fs_util Add try_canonicalize to rustc_fs_util and use it over fs::canonicalize 2023-03-16 21:50:23 +01:00
rustc_graphviz rustdoc: remove rust logo from non-Rust crates 2023-10-08 20:17:53 -07:00
rustc_hir Auto merge of #115670 - Zoxc:outline-panic-macro-1, r=Mark-Simulacrum 2023-10-01 05:56:47 +00:00
rustc_hir_analysis Auto merge of #115948 - notriddle:notriddle/logo-lockup, r=fmease 2023-10-11 06:28:36 +00:00
rustc_hir_pretty Fiddle with State functions. 2023-10-11 10:46:55 +11:00
rustc_hir_typeck On type error involving closure, avoid ICE 2023-10-12 23:29:02 +00:00
rustc_incremental Auto merge of #115964 - bjorn3:cgu_reuse_tracker_global_state, r=cjgillot 2023-10-13 00:09:30 +00:00
rustc_index Preserve DebugInfo in DeadStoreElimination. 2023-10-06 15:46:11 +00:00
rustc_infer Rollup merge of #116219 - compiler-errors:relate-alias-ty-with-variance, r=lcnr 2023-10-11 20:08:20 +02:00
rustc_interface Auto merge of #115964 - bjorn3:cgu_reuse_tracker_global_state, r=cjgillot 2023-10-13 00:09:30 +00:00
rustc_lexer Update lexer emoji diagnostics to Unicode 15.0 2023-07-29 08:47:21 +08:00
rustc_lint check-cfg: only print the list of expected names once 2023-10-12 18:39:35 +02:00
rustc_lint_defs Remove rustc_lint_defs::lint_array 2023-09-28 23:01:25 +02:00
rustc_llvm rustdoc: remove rust logo from non-Rust crates 2023-10-08 20:17:53 -07:00
rustc_log use env variable to control thread ids in rustc_log 2023-10-10 09:39:47 +08:00
rustc_macros Bump cfg(bootstrap) 2023-08-23 20:05:14 -04:00
rustc_metadata rustdoc: remove rust logo from non-Rust crates 2023-10-08 20:17:53 -07:00
rustc_middle Rollup merge of #116219 - compiler-errors:relate-alias-ty-with-variance, r=lcnr 2023-10-11 20:08:20 +02:00
rustc_mir_build Auto merge of #116391 - Nadrieril:constructorset, r=cjgillot 2023-10-12 21:33:31 +00:00
rustc_mir_dataflow Preserve DebugInfo in DeadStoreElimination. 2023-10-06 15:46:11 +00:00
rustc_mir_transform coverage: Simplify adding BCB successors to the traversal worklists 2023-10-12 22:37:58 +11:00
rustc_monomorphize rustc_monomorphize: Introduce check_fn_args_move_size() 2023-10-07 10:29:37 +02:00
rustc_parse Reorder an expression to improve readability. 2023-10-12 08:46:15 +11:00
rustc_parse_format rustdoc: remove rust logo from non-Rust crates 2023-10-08 20:17:53 -07:00
rustc_passes Auto merge of #115948 - notriddle:notriddle/logo-lockup, r=fmease 2023-10-11 06:28:36 +00:00
rustc_plugin_impl rustdoc: remove rust logo from non-Rust crates 2023-10-08 20:17:53 -07:00
rustc_privacy rustdoc: remove rust logo from non-Rust crates 2023-10-08 20:17:53 -07:00
rustc_query_impl rustdoc: remove rust logo from non-Rust crates 2023-10-08 20:17:53 -07:00
rustc_query_system Rollup merge of #115863 - chenyukang:yukang-add-message-tidy-check, r=davidtwco 2023-10-03 12:24:11 +02:00
rustc_resolve rustdoc: remove rust logo from non-Rust crates 2023-10-08 20:17:53 -07:00
rustc_serialize rustdoc: remove rust logo from non-Rust crates 2023-10-08 20:17:53 -07:00
rustc_session Auto merge of #116619 - nnethercote:rustc_driver_impl, r=compiler-errors 2023-10-13 05:35:29 +00:00
rustc_smir Auto merge of #115948 - notriddle:notriddle/logo-lockup, r=fmease 2023-10-11 06:28:36 +00:00
rustc_span rustdoc: remove rust logo from non-Rust crates 2023-10-08 20:17:53 -07:00
rustc_symbol_mangling rustdoc: remove rust logo from non-Rust crates 2023-10-08 20:17:53 -07:00
rustc_target Auto merge of #116014 - lqd:mcp510-2-electric-boogaloo, r=petrochenkov 2023-10-11 12:11:39 +00:00
rustc_trait_selection Handle several #[diagnostic::on_unimplemented] attributes correctly 2023-10-11 22:01:59 +02:00
rustc_traits Detect cycle errors hidden by opaques during monomorphization 2023-09-13 17:35:44 +00:00
rustc_transmute Remove the MaybeTransmutableQuery<&'l Dfa<...>, C> impl. 2023-10-06 11:25:32 +11:00
rustc_ty_utils rustdoc: remove rust logo from non-Rust crates 2023-10-08 20:17:53 -07:00
rustc_type_ir Avoid emitting the non_exhaustive error if other errors already occurred 2023-10-11 12:49:57 +00:00
stable_mir Rollup merge of #116560 - ouz-a:efficient_ids, r=oli-obk 2023-10-10 18:44:46 +02:00