diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2023-11-01 11:29:42 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-01 11:29:42 +0100 |
| commit | 515fdbf687e7191b70a5541fe4b43a2351e4f15b (patch) | |
| tree | f5c176d4f633d109134740812bbe532b44fda1a1 /compiler/rustc_driver_impl/src | |
| parent | 6c893e6673560de575f8580235169df7e787d799 (diff) | |
| parent | 587af910459fe408f03e004d264fdf218203849d (diff) | |
| download | rust-515fdbf687e7191b70a5541fe4b43a2351e4f15b.tar.gz rust-515fdbf687e7191b70a5541fe4b43a2351e4f15b.zip | |
Rollup merge of #117475 - nnethercote:rm-create_session, r=oli-obk
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. r? ``@oli-obk``
Diffstat (limited to 'compiler/rustc_driver_impl/src')
0 files changed, 0 insertions, 0 deletions
