about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/llvm_util.rs
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2023-12-05 12:47:12 +1100
committerNicholas Nethercote <n.nethercote@gmail.com>2023-12-06 09:12:22 +1100
commit618409901ac354b57e6f3ea9fdbd6c4e88a10ef9 (patch)
tree028f2cfddeebe08522e05c33682aebd6ec09063d /compiler/rustc_codegen_llvm/src/llvm_util.rs
parent35ac2816a0b1e0ff45d64a8b33a1ed9724147be3 (diff)
downloadrust-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