rust/compiler
Aaron Hill 6c1f15fa81
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-02 01:43:25 -05:00
..
rustc
rustc_apfloat Backport another LLVM commit to rustc_apfloat 2020-10-04 02:02:25 +02:00
rustc_arena Fix even more clippy warnings 2020-10-30 10:13:39 -04:00
rustc_ast parser: Cleanup LazyTokenStream and avoid some clones 2020-10-31 01:56:34 +03:00
rustc_ast_lowering Implement rustc side of report-future-incompat 2020-10-30 20:02:14 -04:00
rustc_ast_passes Fix typos 2020-10-29 16:51:46 +01:00
rustc_ast_pretty Fix even more clippy warnings 2020-10-30 10:13:39 -04:00
rustc_attr Fix even more clippy warnings 2020-10-30 10:13:39 -04:00
rustc_builtin_macros Unconditionally capture tokens for attributes. 2020-10-21 18:57:29 -04:00
rustc_codegen_cranelift Add 'compiler/rustc_codegen_cranelift/' from commit '793d26047f994e23415f8f6bb5686ff25d3dda92' 2020-10-26 09:53:27 +01:00
rustc_codegen_llvm Implement -Z relax-elf-relocations=yes|no 2020-10-31 17:16:56 +01:00
rustc_codegen_ssa Rollup merge of #78396 - josephlr:ermsb, r=petrochenkov 2020-10-27 08:45:24 +09:00
rustc_data_structures Fix even more clippy warnings 2020-10-30 10:13:39 -04:00
rustc_driver Fix even more clippy warnings 2020-10-30 10:13:39 -04:00
rustc_error_codes Rollup merge of #78332 - PoignardAzur:doc_E0308, r=camelid 2020-10-27 08:44:54 +09:00
rustc_errors Some work 2020-10-30 20:02:14 -04:00
rustc_expand Rollup merge of #78603 - petrochenkov:fourdigits, r=matthewjasper 2020-11-01 11:53:37 +01:00
rustc_feature Fix even more clippy warnings 2020-10-30 10:13:39 -04:00
rustc_fs_util Remove unused code from remaining compiler crates 2020-10-14 04:14:32 +02:00
rustc_graphviz /nightly/nightly-rustc 2020-09-23 21:51:56 +02:00
rustc_hir Fix even more clippy warnings 2020-10-30 10:13:39 -04:00
rustc_hir_pretty Fix even more clippy warnings 2020-10-30 10:13:39 -04:00
rustc_incremental /nightly/nightly-rustc 2020-09-23 21:51:56 +02:00
rustc_index
rustc_infer Remove implicit Continue type 2020-10-30 12:27:47 +01:00
rustc_interface Auto merge of #78605 - nox:relax-elf-relocations, r=nagisa 2020-11-02 00:12:32 +00:00
rustc_lexer Add back missing comments 2020-10-30 10:13:41 -04:00
rustc_lint Fix ICE when a future-incompat-report has its command-line level capped 2020-11-02 01:43:25 -05:00
rustc_lint_defs Implement rustc side of report-future-incompat 2020-10-30 20:02:14 -04:00
rustc_llvm Auto merge of #78531 - cuviper:unwrap-metadata, r=tmandry 2020-11-01 09:30:11 +00:00
rustc_macros Remove implicit Continue type 2020-10-30 12:27:47 +01:00
rustc_metadata Fix some more clippy warnings 2020-10-30 10:12:56 -04:00
rustc_middle Fix ICE when a future-incompat-report has its command-line level capped 2020-11-02 01:43:25 -05:00
rustc_mir Assert that locals have storage when used 2020-10-31 21:06:29 +01:00
rustc_mir_build Auto merge of #78553 - Nadrieril:fix-78549, r=varkor 2020-11-01 14:37:50 +00:00
rustc_parse parser: Cleanup LazyTokenStream and avoid some clones 2020-10-31 01:56:34 +03:00
rustc_parse_format /nightly/nightly-rustc 2020-09-23 21:51:56 +02:00
rustc_passes Rollup merge of #78208 - liketechnik:issue-69399, r=oli-obk 2020-10-25 18:43:40 +09:00
rustc_plugin_impl /nightly/nightly-rustc 2020-09-23 21:51:56 +02:00
rustc_privacy Auto merge of #78182 - LeSeulArtichaut:ty-visitor-contolflow, r=lcnr,oli-obk 2020-10-30 22:53:55 +00:00
rustc_query_system Fix even more clippy warnings 2020-10-30 10:13:39 -04:00
rustc_resolve Auto merge of #78420 - estebank:suggest-assoc-fn, r=petrochenkov 2020-11-01 06:49:16 +00:00
rustc_save_analysis Rollup merge of #78349 - JohnTitor:issue-75962, r=davidtwco 2020-10-27 08:45:07 +09:00
rustc_serialize Replace absolute paths with relative ones 2020-10-13 14:16:45 +02:00
rustc_session Auto merge of #78605 - nox:relax-elf-relocations, r=nagisa 2020-11-02 00:12:32 +00:00
rustc_span Rollup merge of #78524 - tmiasko:source-files-borrow, r=Aaron1011 2020-10-30 18:00:54 +09:00
rustc_symbol_mangling Fix even more clippy warnings 2020-10-30 10:13:39 -04:00
rustc_target Fix even more clippy warnings 2020-10-30 10:13:39 -04:00
rustc_trait_selection Remove implicit Continue type 2020-10-30 12:27:47 +01:00
rustc_traits Auto merge of #78182 - LeSeulArtichaut:ty-visitor-contolflow, r=lcnr,oli-obk 2020-10-30 22:53:55 +00:00
rustc_ty Calculate visibilities once in resolve 2020-10-19 11:57:50 +03:00
rustc_typeck Add delay_span_bug to no longer ICE 2020-11-01 22:31:19 +00:00