diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-12-05 12:47:12 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-12-06 09:12:22 +1100 |
| commit | 618409901ac354b57e6f3ea9fdbd6c4e88a10ef9 (patch) | |
| tree | 028f2cfddeebe08522e05c33682aebd6ec09063d /compiler/rustc_codegen_llvm/src/llvm_util.rs | |
| parent | 35ac2816a0b1e0ff45d64a8b33a1ed9724147be3 (diff) | |
| download | rust-618409901ac354b57e6f3ea9fdbd6c4e88a10ef9.tar.gz rust-618409901ac354b57e6f3ea9fdbd6c4e88a10ef9.zip | |
Fewer early errors.
`build_session` is passed an `EarlyErrorHandler` and then constructs a `Handler`. But the `EarlyErrorHandler` is still used for some time after that. This commit changes `build_session` so it consumes the passed `EarlyErrorHandler`, and also drops it as soon as the `Handler` is built. As a result, `parse_cfg` and `parse_check_cfg` now take a `Handler` instead of an `EarlyErrorHandler`.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/llvm_util.rs')
0 files changed, 0 insertions, 0 deletions
