rust/compiler
Nicholas Nethercote 587af91045 Inline and remove create_session.
Currently the parts of session initialization that happen within
`rustc_interface` are split between `run_compiler` and `create_session`.
This split isn't necessary and obscures what's happening.

This commit merges the two functions. I think a single longer function
is much clearer than splitting this code across two functions in
different modules, especially when `create_session` has 13 parameters,
and is misnamed (it also creates the codegen backend). The net result is
43 fewer lines of code.
2023-11-01 13:46:15 +11:00
..
rustc Clean up rustc_*/Cargo.toml. 2023-10-30 08:46:02 +11:00
rustc_abi Clean up rustc_*/Cargo.toml. 2023-10-30 08:46:02 +11:00
rustc_arena Clean up rustc_*/Cargo.toml. 2023-10-30 08:46:02 +11:00
rustc_ast Clean up rustc_*/Cargo.toml. 2023-10-30 08:46:02 +11:00
rustc_ast_lowering Rollup merge of #117068 - nnethercote:clean-up-Cargo-toml, r=wesleywiser 2023-10-30 17:33:15 +01:00
rustc_ast_passes Rollup merge of #117370 - nicholasbishop:bishop-better-c-variadic-errors, r=oli-obk 2023-10-30 17:33:17 +01:00
rustc_ast_pretty Clean up rustc_*/Cargo.toml. 2023-10-30 08:46:02 +11:00
rustc_attr Clean up rustc_*/Cargo.toml. 2023-10-30 08:46:02 +11:00
rustc_baked_icu_data Clean up rustc_*/Cargo.toml. 2023-10-30 08:46:02 +11:00
rustc_borrowck Rollup merge of #117357 - tmiasko:terminate, r=wesleywiser 2023-10-30 17:33:17 +01:00
rustc_builtin_macros Clean up rustc_*/Cargo.toml. 2023-10-30 08:46:02 +11:00
rustc_codegen_cranelift Rollup merge of #117317 - RalfJung:track-caller, r=oli-obk 2023-10-30 17:33:16 +01:00
rustc_codegen_gcc Merge commit '09ce29d0591a21e1abae22eac4d41ffd32993af8' into subtree-update_cg_gcc_2023-10-25 2023-10-27 16:07:01 -04:00
rustc_codegen_llvm Clean up rustc_*/Cargo.toml. 2023-10-30 08:46:02 +11:00
rustc_codegen_ssa Rollup merge of #117317 - RalfJung:track-caller, r=oli-obk 2023-10-30 17:33:16 +01:00
rustc_const_eval Rollup merge of #117317 - RalfJung:track-caller, r=oli-obk 2023-10-30 17:33:16 +01:00
rustc_data_structures Clean up rustc_*/Cargo.toml. 2023-10-30 08:46:02 +11:00
rustc_driver Clean up rustc_*/Cargo.toml. 2023-10-30 08:46:02 +11:00
rustc_driver_impl Rollup merge of #117376 - nnethercote:rustc_interface-more, r=oli-obk 2023-10-30 17:33:18 +01:00
rustc_error_codes Clean up rustc_*/Cargo.toml. 2023-10-30 08:46:02 +11:00
rustc_error_messages Clean up rustc_*/Cargo.toml. 2023-10-30 08:46:02 +11:00
rustc_errors Clean up rustc_*/Cargo.toml. 2023-10-30 08:46:02 +11:00
rustc_expand Clean up rustc_*/Cargo.toml. 2023-10-30 08:46:02 +11:00
rustc_feature Clean up rustc_*/Cargo.toml. 2023-10-30 08:46:02 +11:00
rustc_fluent_macro Clean up rustc_*/Cargo.toml. 2023-10-30 08:46:02 +11:00
rustc_fs_util Clean up rustc_*/Cargo.toml. 2023-10-30 08:46:02 +11:00
rustc_graphviz Clean up rustc_*/Cargo.toml. 2023-10-30 08:46:02 +11:00
rustc_hir Clean up rustc_*/Cargo.toml. 2023-10-30 08:46:02 +11:00
rustc_hir_analysis Clean up rustc_*/Cargo.toml. 2023-10-30 08:46:02 +11:00
rustc_hir_pretty Rollup merge of #117068 - nnethercote:clean-up-Cargo-toml, r=wesleywiser 2023-10-30 17:33:15 +01:00
rustc_hir_typeck Rollup merge of #117068 - nnethercote:clean-up-Cargo-toml, r=wesleywiser 2023-10-30 17:33:15 +01:00
rustc_incremental Clean up rustc_*/Cargo.toml. 2023-10-30 08:46:02 +11:00
rustc_index Clean up rustc_*/Cargo.toml. 2023-10-30 08:46:02 +11:00
rustc_infer Rollup merge of #117132 - estebank:issue-80194, r=petrochenkov 2023-10-30 17:33:15 +01:00
rustc_interface Inline and remove create_session. 2023-11-01 13:46:15 +11:00
rustc_lexer Clean up rustc_*/Cargo.toml. 2023-10-30 08:46:02 +11:00
rustc_lint Rollup merge of #117395 - gurry:117380-wrong-parent-sugg, r=Nilstrieb 2023-10-30 17:33:19 +01:00
rustc_lint_defs Clean up rustc_*/Cargo.toml. 2023-10-30 08:46:02 +11:00
rustc_llvm Clean up rustc_*/Cargo.toml. 2023-10-30 08:46:02 +11:00
rustc_log Clean up rustc_*/Cargo.toml. 2023-10-30 08:46:02 +11:00
rustc_macros Clean up rustc_*/Cargo.toml. 2023-10-30 08:46:02 +11:00
rustc_metadata Clean up rustc_*/Cargo.toml. 2023-10-30 08:46:02 +11:00
rustc_middle Rollup merge of #117357 - tmiasko:terminate, r=wesleywiser 2023-10-30 17:33:17 +01:00
rustc_mir_build Clean up rustc_*/Cargo.toml. 2023-10-30 08:46:02 +11:00
rustc_mir_dataflow Clean up rustc_*/Cargo.toml. 2023-10-30 08:46:02 +11:00
rustc_mir_transform Rollup merge of #117068 - nnethercote:clean-up-Cargo-toml, r=wesleywiser 2023-10-30 17:33:15 +01:00
rustc_monomorphize Clean up rustc_*/Cargo.toml. 2023-10-30 08:46:02 +11:00
rustc_parse Clean up rustc_*/Cargo.toml. 2023-10-30 08:46:02 +11:00
rustc_parse_format Clean up rustc_*/Cargo.toml. 2023-10-30 08:46:02 +11:00
rustc_passes Rollup merge of #117390 - chenyukang:yukang-fix-117284-unused-macro, r=estebank 2023-10-30 17:33:18 +01:00
rustc_plugin_impl Clean up rustc_*/Cargo.toml. 2023-10-30 08:46:02 +11:00
rustc_privacy Clean up rustc_*/Cargo.toml. 2023-10-30 08:46:02 +11:00
rustc_query_impl Clean up rustc_*/Cargo.toml. 2023-10-30 08:46:02 +11:00
rustc_query_system Clean up rustc_*/Cargo.toml. 2023-10-30 08:46:02 +11:00
rustc_resolve Clean up rustc_*/Cargo.toml. 2023-10-30 08:46:02 +11:00
rustc_serialize Clean up rustc_*/Cargo.toml. 2023-10-30 08:46:02 +11:00
rustc_session Rollup merge of #117376 - nnethercote:rustc_interface-more, r=oli-obk 2023-10-30 17:33:18 +01:00
rustc_smir Clean up rustc_*/Cargo.toml. 2023-10-30 08:46:02 +11:00
rustc_span Clean up rustc_*/Cargo.toml. 2023-10-30 08:46:02 +11:00
rustc_symbol_mangling Clean up rustc_*/Cargo.toml. 2023-10-30 08:46:02 +11:00
rustc_target Rollup merge of #117356 - he32:netbsd-mipsel, r=oli-obk 2023-10-30 17:33:16 +01:00
rustc_trait_selection Rollup merge of #117068 - nnethercote:clean-up-Cargo-toml, r=wesleywiser 2023-10-30 17:33:15 +01:00
rustc_traits Clean up rustc_*/Cargo.toml. 2023-10-30 08:46:02 +11:00
rustc_transmute Clean up rustc_*/Cargo.toml. 2023-10-30 08:46:02 +11:00
rustc_ty_utils Rollup merge of #117068 - nnethercote:clean-up-Cargo-toml, r=wesleywiser 2023-10-30 17:33:15 +01:00
rustc_type_ir Clean up rustc_*/Cargo.toml. 2023-10-30 08:46:02 +11:00
stable_mir Auto merge of #116447 - oli-obk:gen_fn, r=compiler-errors 2023-10-29 00:03:52 +00:00