]> git.lizzy.rs Git - rust.git/commit - src/tools/miri
Auto merge of #86970 - inquisitivecrystal:force-warn, r=davidtwco
authorbors <bors@rust-lang.org>
Mon, 19 Jul 2021 13:18:04 +0000 (13:18 +0000)
committerbors <bors@rust-lang.org>
Mon, 19 Jul 2021 13:18:04 +0000 (13:18 +0000)
commitb543e0dc03193cde5538099e3996b23aeacb8eca
tree999348812c9327c4a6daa54d678aa82f558f2594
parent8df945c4717ffaf923b57bf30c473df6fc98bc85
parent10cb38076645ad113617ad868beab08f3bc2c280
Auto merge of #86970 - inquisitivecrystal:force-warn, r=davidtwco

Make `--force-warns` a normal lint level option

Now that `ForceWarn` is a lint level, there's no reason `--force-warns` should be treated differently from other options that set lint levels. This merges the `ForceWarn` handling in with the other lint level command line options. It also unifies all of the relevant selection logic in `compiler/rustc_lint/src/levels.rs`, rather than having some of it weirdly elsewhere.

Fixes #86958, which arose from the special-cased handling of `ForceWarn` having had an error in it.
src/librustdoc/config.rs