rust/compiler
Matthias Krüger b7035198e6
Rollup merge of #116964 - celinval:smir-mono-body, r=oli-obk
Add stable Instance::body() and RustcInternal trait

The `Instance::body()` returns a monomorphized body.

For that, we had to implement visitor that monomorphize types and constants. We are also introducing the RustcInternal trait that will allow us to convert back from Stable to Internal.

Note that this trait is not yet visible for our users as it depends on Tables. We should probably add a new trait that can be exposed.

The tests here are very simple, and I'm planning on creating more exhaustive tests in the project-mir repo. But I was hoping to get some feedback here first.

r? ```@oli-obk```
2023-10-21 10:08:17 +02: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 s/generator/coroutine/ 2023-10-20 21:14:01 +00:00
rustc_arena rustdoc: remove rust logo from non-Rust crates 2023-10-08 20:17:53 -07:00
rustc_ast Uplift movability and mutability, the simple way 2023-10-19 16:42:58 +00:00
rustc_ast_lowering Rename CoroutineKind::Gen to ::Coroutine 2023-10-20 21:14:01 +00:00
rustc_ast_passes s/generator/coroutine/ 2023-10-20 21:14:01 +00:00
rustc_ast_pretty Auto merge of #116822 - notriddle:notriddle/rust-logo, r=fmease 2023-10-17 04:41:20 +00:00
rustc_attr docs: add Rust logo to more compiler crates 2023-10-16 15:38:08 -07:00
rustc_baked_icu_data docs: add Rust logo to more compiler crates 2023-10-16 15:38:08 -07:00
rustc_borrowck Rename CoroutineKind::Gen to ::Coroutine 2023-10-20 21:14:01 +00:00
rustc_builtin_macros s/generator/coroutine/ 2023-10-20 21:14:01 +00:00
rustc_codegen_cranelift s/generator/coroutine/ 2023-10-20 21:14:01 +00:00
rustc_codegen_gcc s/generator/coroutine/ 2023-10-20 21:14:01 +00:00
rustc_codegen_llvm s/generator/coroutine/ 2023-10-20 21:14:01 +00:00
rustc_codegen_ssa Rename CoroutineKind::Gen to ::Coroutine 2023-10-20 21:14:01 +00:00
rustc_const_eval Rename CoroutineKind::Gen to ::Coroutine 2023-10-20 21:14:01 +00:00
rustc_data_structures Auto merge of #116830 - nnethercote:rustc_type_ir, r=compiler-errors 2023-10-18 03:55:36 +00:00
rustc_driver docs: add Rust logo to more compiler crates 2023-10-16 15:38:08 -07:00
rustc_driver_impl Auto merge of #116814 - estebank:windows-ice-path, r=petrochenkov 2023-10-18 07:45:56 +00:00
rustc_error_codes Replace all uses of generator in markdown documentation with coroutine 2023-10-20 21:14:02 +00:00
rustc_error_messages docs: add Rust logo to more compiler crates 2023-10-16 15:38:08 -07:00
rustc_errors Auto merge of #116962 - estebank:issue-63835, r=oli-obk 2023-10-20 10:52:24 +00:00
rustc_expand docs: add Rust logo to more compiler crates 2023-10-16 15:38:08 -07:00
rustc_feature Re-add generators as a removed feature and point to the new feature name 2023-10-20 21:14:02 +00:00
rustc_fluent_macro Use v0.0.0 in compiler crates 2023-10-18 21:55:15 +00:00
rustc_fs_util
rustc_graphviz rustdoc: remove rust logo from non-Rust crates 2023-10-08 20:17:53 -07:00
rustc_hir Rename CoroutineKind::Gen to ::Coroutine 2023-10-20 21:14:01 +00:00
rustc_hir_analysis s/generator/coroutine/ 2023-10-20 21:14:01 +00:00
rustc_hir_pretty Fiddle with State functions. 2023-10-11 10:46:55 +11:00
rustc_hir_typeck Rename CoroutineKind::Gen to ::Coroutine 2023-10-20 21:14:01 +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 s/generator/coroutine/ 2023-10-20 21:14:01 +00:00
rustc_interface s/generator/coroutine/ 2023-10-20 21:14:01 +00:00
rustc_lexer Use v0.0.0 in compiler crates 2023-10-18 21:55:15 +00:00
rustc_lint s/generator/coroutine/ 2023-10-20 21:14:01 +00:00
rustc_lint_defs Bump COINDUCTIVE_OVERLAP_IN_COHERENCE 2023-10-18 18:54:11 +00: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 Use v0.0.0 in compiler crates 2023-10-18 21:55:15 +00:00
rustc_metadata s/generator/coroutine/ 2023-10-20 21:14:01 +00:00
rustc_middle Rename CoroutineKind::Gen to ::Coroutine 2023-10-20 21:14:01 +00:00
rustc_mir_build s/generator/coroutine/ 2023-10-20 21:14:01 +00:00
rustc_mir_dataflow s/generator/coroutine/ 2023-10-20 21:14:01 +00:00
rustc_mir_transform coverage: Simplify the injection of coverage statements 2023-10-21 12:33:33 +11:00
rustc_monomorphize s/generator/coroutine/ 2023-10-20 21:14:01 +00:00
rustc_parse s/generator/coroutine/ 2023-10-20 21:14:01 +00:00
rustc_parse_format rustdoc: remove rust logo from non-Rust crates 2023-10-08 20:17:53 -07:00
rustc_passes s/generator/coroutine/ 2023-10-20 21:14:01 +00:00
rustc_plugin_impl rustdoc: remove rust logo from non-Rust crates 2023-10-08 20:17:53 -07:00
rustc_privacy s/Generator/Coroutine/ 2023-10-20 21:10:38 +00:00
rustc_query_impl rustdoc: remove rust logo from non-Rust crates 2023-10-08 20:17:53 -07:00
rustc_query_system Format all the let chains in compiler 2023-10-13 08:59:36 +00:00
rustc_resolve Rollup merge of #116961 - estebank:issue-60164, r=oli-obk 2023-10-21 10:08:16 +02:00
rustc_serialize rustdoc: remove rust logo from non-Rust crates 2023-10-08 20:17:53 -07:00
rustc_session s/generator/coroutine/ 2023-10-20 21:14:01 +00:00
rustc_smir Rollup merge of #116964 - celinval:smir-mono-body, r=oli-obk 2023-10-21 10:08:17 +02:00
rustc_span Re-add generators as a removed feature and point to the new feature name 2023-10-20 21:14:02 +00:00
rustc_symbol_mangling s/generator/coroutine/ 2023-10-20 21:14:01 +00:00
rustc_target Rename ACTIVE_FEATURES as UNSTABLE_FEATURES. 2023-10-16 08:17:23 +11:00
rustc_trait_selection Rollup merge of #116911 - estebank:issue-85378, r=oli-obk 2023-10-21 10:08:15 +02:00
rustc_traits Detect cycle errors hidden by opaques during monomorphization 2023-09-13 17:35:44 +00:00
rustc_transmute Use v0.0.0 in compiler crates 2023-10-18 21:55:15 +00:00
rustc_ty_utils s/generator/coroutine/ 2023-10-20 21:14:01 +00:00
rustc_type_ir s/generator/coroutine/ 2023-10-20 21:14:01 +00:00
stable_mir Rollup merge of #116964 - celinval:smir-mono-body, r=oli-obk 2023-10-21 10:08:17 +02:00