]> git.lizzy.rs Git - rust.git/commit - src/tools/rust-analyzer
Auto merge of #87337 - jyn514:lint-error, r=oli-obk,flip1995
authorbors <bors@rust-lang.org>
Tue, 9 Nov 2021 08:21:10 +0000 (08:21 +0000)
committerbors <bors@rust-lang.org>
Tue, 9 Nov 2021 08:21:10 +0000 (08:21 +0000)
commit214cd1f228a463b59f73ee46c8ae3b30f85de253
tree14e0374a49bca45bd553d17d94ec6fb0c530e94d
parent60952bc3da442cf2ea11dcc9c80a461a659bbcd7
parentebf8966156ab5d2831dd4cd1b34bc5a906d0f895
Auto merge of #87337 - jyn514:lint-error, r=oli-obk,flip1995

Don't abort compilation after giving a lint error

The only reason to use `abort_if_errors` is when the program is so broken that either:
1. later passes get confused and ICE
2. any diagnostics from later passes would be noise

This is never the case for lints, because the compiler has to be able to deal with `allow`-ed lints.
So it can continue to lint and compile even if there are lint errors.

Closes https://github.com/rust-lang/rust/issues/82761. This is a WIP because I have a feeling it will exit with 0 even if there were lint errors; I don't have a computer that can build rustc locally at the moment.
src/librustdoc/core.rs
src/librustdoc/lib.rs