about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc/src/errors.rs
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2023-11-17 14:15:56 +1100
committerNicholas Nethercote <n.nethercote@gmail.com>2023-11-18 07:43:51 +1100
commit472f7c97a6a65e8b05c941d99d7a7ae54c4b59e0 (patch)
treecf75e874a891a794957452466955c65177eff79e /compiler/rustc_codegen_gcc/src/errors.rs
parent5659cc57e96a858ce57380553d2cae8f6da6ec5f (diff)
downloadrust-472f7c97a6a65e8b05c941d99d7a7ae54c4b59e0.tar.gz
rust-472f7c97a6a65e8b05c941d99d7a7ae54c4b59e0.zip
Simplify `run_compiler` control flow.
I find `Compilation::and_then` hard to read. This commit removes it,
simplifying the control flow in `run_compiler`, and reducing the number
of lines of code.

In particular, `list_metadata` and `process_try_link` (renamed `rlink`)
are now only called if the relevant condition is true, rather than that
condition being checked within the function.
Diffstat (limited to 'compiler/rustc_codegen_gcc/src/errors.rs')
0 files changed, 0 insertions, 0 deletions