rust/compiler/rustc_lint/src
Yuki Okushi 8894c903cb
Rollup merge of #78663 - Aaron1011:fix/cap-future-compat, r=tmandry
Fix ICE when a future-incompat-report has its command-line level capped

Fixes #78660

With PR https://github.com/rust-lang/rust/pull/75534 merged, we now run
more lint-related code for future-incompat-report, even when their final
level is Allow. Some lint-related code was not expecting `Level::Allow`,
and had an explicit panic.

This PR explicitly tracks the lint level set on the command line before
`--cap-lints` is applied. This is used to emit a more precise error
note (e.g. we don't say that `-W lint-name` was specified on the
command line just because a lint was capped to Warn). As a result, we
can now correctly emit a note that `-A` was used if we got
`Level::Allow` from the command line (before the cap is applied).
2020-11-03 15:27:16 +09:00
..
nonstandard_style mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
array_into_iter.rs Implement rustc side of report-future-incompat 2020-10-30 20:02:14 -04:00
builtin.rs Implement rustc side of report-future-incompat 2020-10-30 20:02:14 -04:00
context.rs Implement rustc side of report-future-incompat 2020-10-30 20:02:14 -04:00
early.rs Fix inconsistencies in handling of inert attributes on statements 2020-10-24 11:55:48 -04:00
internal.rs add test 2020-09-21 20:36:05 +02:00
late.rs Fix inconsistencies in handling of inert attributes on statements 2020-10-24 11:55:48 -04:00
levels.rs Fix ICE when a future-incompat-report has its command-line level capped 2020-11-02 01:43:25 -05:00
lib.rs TypeVisitor: use ControlFlow in rustc_{infer,lint,trait_selection} 2020-10-30 12:27:34 +01:00
methods.rs Fix doctest 2020-10-26 18:19:49 -04:00
non_ascii_idents.rs Auto merge of #76541 - matthiaskrgr:unstable_sort, r=davidtwco 2020-09-14 21:43:17 +00:00
nonstandard_style.rs Fix some more clippy warnings 2020-10-30 10:12:56 -04:00
passes.rs Add check_generic_arg early pass 2020-10-16 17:14:36 -03:00
redundant_semicolon.rs Treat trailing semicolon as a statement in macro call 2020-11-02 13:03:13 -05:00
traits.rs Uplift drop-bounds lint from clippy 2020-10-01 12:06:33 -07:00
types.rs Auto merge of #78182 - LeSeulArtichaut:ty-visitor-contolflow, r=lcnr,oli-obk 2020-10-30 22:53:55 +00:00
unused.rs Fix some more clippy warnings 2020-10-30 10:12:56 -04:00