diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-10-31 09:32:10 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-11-01 13:46:15 +1100 |
| commit | 587af910459fe408f03e004d264fdf218203849d (patch) | |
| tree | d8cfaa89d952a9d4151795ae367ee4ac21bc8081 /compiler/rustc_driver_impl/src | |
| parent | 236ac911de2f4b6210ba99e25c6c4843c9381a1a (diff) | |
| download | rust-587af910459fe408f03e004d264fdf218203849d.tar.gz rust-587af910459fe408f03e004d264fdf218203849d.zip | |
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.
Diffstat (limited to 'compiler/rustc_driver_impl/src')
0 files changed, 0 insertions, 0 deletions
