rust/compiler
bors 0e7915d11f Auto merge of #96085 - jsgf:deny-unused-deps, r=compiler-errors
Make sure `-Dunused-crate-dependencies --json unused-externs` makes rustc exit with error status

This PR:
- fixes compiletest to understand unused extern notifications
- adds tests for `--json unused-externs`
- makes sure that deny-level unused externs notifications are treated as compile errors
  - refactors the `emit_unused_externs` callstack to plumb through the level as an enum as a string, and adds `Level::is_error`

Update: adds `--json unused-externs-silent` with the original behaviour since Cargo needs it. Should address `@est31's` concerns.

Fixes: https://github.com/rust-lang/rust/issues/96068
2022-04-28 04:17:52 +00:00
..
rustc
rustc_apfloat
rustc_arena
rustc_ast Avoid producing NoDelim values in MacArgs::delim(). 2022-04-27 08:15:12 +10:00
rustc_ast_lowering Auto merge of #91557 - cjgillot:ast-lifetimes-named, r=petrochenkov 2022-04-27 23:13:28 +00:00
rustc_ast_passes rename to BoundKind and add comments 2022-04-21 10:09:32 +08:00
rustc_ast_pretty Avoid producing NoDelim values in MacArgs::delim(). 2022-04-27 08:15:12 +10:00
rustc_attr
rustc_borrowck Rollup merge of #96385 - marmeladema:nll-fix-trait-lifetime-bound-suggestions, r=jackh726 2022-04-27 02:47:11 +02:00
rustc_builtin_macros
rustc_codegen_cranelift Merge commit 'f2cdd4a78d89c009342197cf5844a21f8aa813df' into sync_cg_clif-2022-04-22 2022-04-22 21:11:38 +02:00
rustc_codegen_gcc
rustc_codegen_llvm Rollup merge of #96432 - SparrowLii:dbg_scope, r=davidtwco 2022-04-28 02:40:34 +02:00
rustc_codegen_ssa Rollup merge of #96432 - SparrowLii:dbg_scope, r=davidtwco 2022-04-28 02:40:34 +02:00
rustc_const_eval Relax restrictions for copy operands 2022-04-22 16:45:15 -04:00
rustc_data_structures
rustc_driver
rustc_error_codes
rustc_error_messages
rustc_errors Add --json unused-externs-silent with original behaviour 2022-04-27 10:04:25 -07:00
rustc_expand Rollup merge of #96471 - BoxyUwU:let_else_considered_harmful, r=lcnr 2022-04-28 02:40:36 +02:00
rustc_feature
rustc_fs_util
rustc_graphviz
rustc_hir Auto merge of #91557 - cjgillot:ast-lifetimes-named, r=petrochenkov 2022-04-27 23:13:28 +00:00
rustc_hir_pretty Stop pretty-printing HIR visibility. 2022-04-23 09:55:25 +02:00
rustc_incremental Rollup merge of #95434 - cjgillot:dump-dep-kind, r=oli-obk 2022-04-21 20:55:18 +02:00
rustc_index tut tut tut 2022-04-27 08:51:33 +01:00
rustc_infer Rollup merge of #96471 - BoxyUwU:let_else_considered_harmful, r=lcnr 2022-04-28 02:40:36 +02:00
rustc_interface Rollup merge of #96090 - JakobDegen:mir-tests, r=nagisa 2022-04-25 00:10:59 +02:00
rustc_lexer
rustc_lint Fix lints. 2022-04-23 23:01:19 +02:00
rustc_lint_defs Plumb through rustc_lint_defs::Level as enum rather than string. 2022-04-27 10:04:25 -07:00
rustc_llvm Stub out more PassManagerBuilder functions 2022-04-20 09:36:02 +02:00
rustc_log
rustc_macros macros: update doc comment for diagnostic derive 2022-04-21 04:22:18 +01:00
rustc_metadata Add --json unused-externs-silent with original behaviour 2022-04-27 10:04:25 -07:00
rustc_middle TAITs are suggestable 2022-04-26 18:55:55 -07:00
rustc_mir_build only show a simple description in E0133 span label 2022-04-24 18:33:07 +02:00
rustc_mir_dataflow
rustc_mir_transform Rollup merge of #96471 - BoxyUwU:let_else_considered_harmful, r=lcnr 2022-04-28 02:40:36 +02:00
rustc_monomorphize Auto merge of #95604 - nbdd0121:used2, r=petrochenkov 2022-04-25 16:14:54 +00:00
rustc_parse Rollup merge of #96471 - BoxyUwU:let_else_considered_harmful, r=lcnr 2022-04-28 02:40:36 +02:00
rustc_parse_format
rustc_passes Auto merge of #95604 - nbdd0121:used2, r=petrochenkov 2022-04-25 16:14:54 +00:00
rustc_plugin_impl
rustc_privacy Compute has_pub_restricted in the resolver. 2022-04-23 23:03:18 +02:00
rustc_query_impl
rustc_query_system
rustc_resolve Auto merge of #96495 - Dylan-DPC:rollup-9lm4tpp, r=Dylan-DPC 2022-04-28 01:37:03 +00:00
rustc_save_analysis Drop vis in ImplItem. 2022-04-23 09:57:00 +02:00
rustc_serialize
rustc_session Auto merge of #96085 - jsgf:deny-unused-deps, r=compiler-errors 2022-04-28 04:17:52 +00:00
rustc_span extend EventArgRecorder into span-aware SpannedEventArgRecorder 2022-04-22 18:06:21 +02:00
rustc_symbol_mangling
rustc_target Rollup merge of #96415 - ehuss:git-io, r=bjorn3 2022-04-26 13:22:31 +02:00
rustc_trait_selection Better error messages when collecting into [T; n] 2022-04-26 21:37:10 -07:00
rustc_traits
rustc_ty_utils
rustc_type_ir
rustc_typeck Rollup merge of #96471 - BoxyUwU:let_else_considered_harmful, r=lcnr 2022-04-28 02:40:36 +02:00