granite-rust/compiler
Matthias Krüger 15896bdd18
Rollup merge of #120950 - compiler-errors:miri-async-closurs, r=RalfJung,oli-obk
Fix async closures in CTFE

First commit renames `is_coroutine_or_closure` into `is_closure_like`, because `is_coroutine_or_closure_or_coroutine_closure` seems confusing and long.

Second commit fixes some forgotten cases where we want to handle `TyKind::CoroutineClosure` the same as closures and coroutines.

The test exercises the change to `ValidityVisitor::aggregate_field_path_elem` which is the source of #120946, but not the change to `UsedParamsNeedSubstVisitor`, though I feel like it's not that big of a deal. Let me know if you'd like for me to look into constructing a test for the latter, though I have no idea what it'd look like (we can't assert against `TooGeneric` anywhere?).

Fixes #120946

r? oli-obk cc ``@RalfJung``
2024-02-12 23:18:53 +01:00
..
rustc Clean up rustc_*/Cargo.toml. 2023-10-30 08:46:02 +11:00
rustc_abi Fix rustc_abi build on stable 2024-01-16 21:15:31 +01:00
rustc_arena Invert diagnostic lints. 2024-02-06 13:12:33 +11:00
rustc_ast Add #[derive(Clone, Copy)] to anonymous adts 2024-02-12 12:47:32 +08:00
rustc_ast_lowering Lowering field access for anonymous adts 2024-02-12 12:47:30 +08:00
rustc_ast_passes check uniqueness of nested fields 2024-02-12 12:47:29 +08:00
rustc_ast_pretty Lower anonymous structs or unions to HIR 2024-02-12 12:47:23 +08:00
rustc_attr Invert diagnostic lints. 2024-02-06 13:12:33 +11:00
rustc_baked_icu_data Bump cfg(bootstrap)s 2023-11-15 19:41:28 -05:00
rustc_borrowck Rollup merge of #120950 - compiler-errors:miri-async-closurs, r=RalfJung,oli-obk 2024-02-12 23:18:53 +01:00
rustc_builtin_macros Add #[derive(Clone, Copy)] to anonymous adts 2024-02-12 12:47:32 +08:00
rustc_codegen_cranelift Auto merge of #120843 - matthiaskrgr:rollup-med37z5, r=matthiaskrgr 2024-02-09 15:34:48 +00:00
rustc_codegen_gcc Rollup merge of #120693 - nnethercote:invert-diagnostic-lints, r=davidtwco 2024-02-09 14:41:50 +01:00
rustc_codegen_llvm is_closure_like 2024-02-11 22:09:52 +00:00
rustc_codegen_ssa is_closure_like 2024-02-11 22:09:52 +00:00
rustc_const_eval Rollup merge of #120950 - compiler-errors:miri-async-closurs, r=RalfJung,oli-obk 2024-02-12 23:18:53 +01:00
rustc_data_structures Rollup merge of #120846 - petrochenkov:jobs, r=oli-obk 2024-02-10 00:58:38 +01:00
rustc_driver Bump cfg(bootstrap)s 2023-11-15 19:41:28 -05:00
rustc_driver_impl Rollup merge of #120693 - nnethercote:invert-diagnostic-lints, r=davidtwco 2024-02-09 14:41:50 +01:00
rustc_error_codes unstably allow constants to refer to statics and read from immutable statics 2024-02-10 16:12:55 +01:00
rustc_error_messages Rollup merge of #120693 - nnethercote:invert-diagnostic-lints, r=davidtwco 2024-02-09 14:41:50 +01:00
rustc_errors Rollup merge of #120833 - nnethercote:more-internal-emit_diagnostics-cleanups, r=oli-obk 2024-02-12 18:04:07 +01:00
rustc_expand Rollup merge of #120693 - nnethercote:invert-diagnostic-lints, r=davidtwco 2024-02-09 14:41:50 +01:00
rustc_feature Tweak delayed bug mentions. 2024-02-12 18:39:20 +11:00
rustc_fluent_macro Invert diagnostic lints. 2024-02-06 13:12:33 +11:00
rustc_fs_util Invert diagnostic lints. 2024-02-06 13:12:33 +11:00
rustc_graphviz Invert diagnostic lints. 2024-02-06 13:12:33 +11:00
rustc_hir Rollup merge of #120950 - compiler-errors:miri-async-closurs, r=RalfJung,oli-obk 2024-02-12 23:18:53 +01:00
rustc_hir_analysis Auto merge of #120980 - matthiaskrgr:rollup-dsjsqql, r=matthiaskrgr 2024-02-12 17:06:22 +00:00
rustc_hir_pretty Lower anonymous structs or unions to HIR 2024-02-12 12:47:23 +08:00
rustc_hir_typeck Rollup merge of #120950 - compiler-errors:miri-async-closurs, r=RalfJung,oli-obk 2024-02-12 23:18:53 +01:00
rustc_incremental Invert diagnostic lints. 2024-02-06 13:12:33 +11:00
rustc_index Invert diagnostic lints. 2024-02-06 13:12:33 +11:00
rustc_index_macros Step all bootstrap cfgs forward 2024-02-08 07:44:34 -05:00
rustc_infer Tweak delayed bug mentions. 2024-02-12 18:39:20 +11:00
rustc_interface Tweak delayed bug mentions. 2024-02-12 18:39:20 +11:00
rustc_lexer Invert diagnostic lints. 2024-02-06 13:12:33 +11:00
rustc_lint Introduce small cache to avoid recomputing the same value twice 2024-02-12 19:40:17 +01:00
rustc_lint_defs Remove unnecessary #![feature(min_specialization)] 2024-02-10 12:26:14 +11:00
rustc_llvm Rollup merge of #120693 - nnethercote:invert-diagnostic-lints, r=davidtwco 2024-02-09 14:41:50 +01:00
rustc_log Invert diagnostic lints. 2024-02-06 13:12:33 +11:00
rustc_macros Rollup merge of #120693 - nnethercote:invert-diagnostic-lints, r=davidtwco 2024-02-09 14:41:50 +01:00
rustc_metadata Lower anonymous structs or unions to HIR 2024-02-12 12:47:23 +08:00
rustc_middle Rollup merge of #120950 - compiler-errors:miri-async-closurs, r=RalfJung,oli-obk 2024-02-12 23:18:53 +01:00
rustc_mir_build Lowering field access for anonymous adts 2024-02-12 12:47:30 +08:00
rustc_mir_dataflow Remove unnecessary min_specialization after bootstrap 2024-02-10 18:15:11 +11:00
rustc_mir_transform Rollup merge of #120950 - compiler-errors:miri-async-closurs, r=RalfJung,oli-obk 2024-02-12 23:18:53 +01:00
rustc_monomorphize Rollup merge of #120950 - compiler-errors:miri-async-closurs, r=RalfJung,oli-obk 2024-02-12 23:18:53 +01:00
rustc_next_trait_solver Add CoroutineClosure to TyKind, AggregateKind, UpvarArgs 2024-02-06 02:22:58 +00:00
rustc_parse Lower anonymous structs or unions to HIR 2024-02-12 12:47:23 +08:00
rustc_parse_format Invert diagnostic lints. 2024-02-06 13:12:33 +11:00
rustc_passes Rollup merge of #120950 - compiler-errors:miri-async-closurs, r=RalfJung,oli-obk 2024-02-12 23:18:53 +01:00
rustc_pattern_analysis Rollup merge of #120693 - nnethercote:invert-diagnostic-lints, r=davidtwco 2024-02-09 14:41:50 +01:00
rustc_privacy Rollup merge of #120693 - nnethercote:invert-diagnostic-lints, r=davidtwco 2024-02-09 14:41:50 +01:00
rustc_query_impl Invert diagnostic lints. 2024-02-06 13:12:33 +11:00
rustc_query_system Rollup merge of #120693 - nnethercote:invert-diagnostic-lints, r=davidtwco 2024-02-09 14:41:50 +01:00
rustc_resolve Improve some codes according to the reviews 2024-02-12 12:47:32 +08:00
rustc_serialize Invert diagnostic lints. 2024-02-06 13:12:33 +11:00
rustc_session Rollup merge of #120693 - nnethercote:invert-diagnostic-lints, r=davidtwco 2024-02-09 14:41:50 +01:00
rustc_smir Add a new debug_assertions instrinsic (compiler) 2024-02-08 11:49:08 -05:00
rustc_span Auto merge of #120980 - matthiaskrgr:rollup-dsjsqql, r=matthiaskrgr 2024-02-12 17:06:22 +00:00
rustc_symbol_mangling Auto merge of #120980 - matthiaskrgr:rollup-dsjsqql, r=matthiaskrgr 2024-02-12 17:06:22 +00:00
rustc_target Remove unnecessary min_specialization after bootstrap 2024-02-10 18:15:11 +11:00
rustc_trait_selection Auto merge of #120980 - matthiaskrgr:rollup-dsjsqql, r=matthiaskrgr 2024-02-12 17:06:22 +00:00
rustc_traits Invert diagnostic lints. 2024-02-06 13:12:33 +11:00
rustc_transmute Invert diagnostic lints. 2024-02-06 13:12:33 +11:00
rustc_ty_utils Lower anonymous structs or unions to HIR 2024-02-12 12:47:23 +08:00
rustc_type_ir Rollup merge of #120693 - nnethercote:invert-diagnostic-lints, r=davidtwco 2024-02-09 14:41:50 +01:00
stable_mir Add a new debug_assertions instrinsic (compiler) 2024-02-08 11:49:08 -05:00