rust/compiler
David Wood 9d864c8d56 macros: add diagnostic derive for lints
`SessionDiagnostic` isn't suitable for use on lints as whether or not it
creates an error or a warning is decided at compile-time by the macro,
whereas lints decide this at runtime based on the location of the lint
being reported (as it will depend on the user's `allow`/`deny`
attributes, etc). Re-using most of the machinery for
`SessionDiagnostic`, this macro introduces a `LintDiagnostic` derive
which implements a `DecorateLint` trait, taking a
`LintDiagnosticBuilder` and adding to the lint according to the
diagnostic struct.
2022-07-05 16:00:21 +01:00
..
rustc
rustc_apfloat
rustc_arena
rustc_ast
rustc_ast_lowering
rustc_ast_passes
rustc_ast_pretty
rustc_attr
rustc_borrowck Rollup merge of #98878 - lcnr:more-rustc_pass_by_value, r=oli-obk 2022-07-04 23:11:12 +02:00
rustc_builtin_macros Don't use match-destructuring for derived ops on structs. 2022-07-04 10:48:15 +10:00
rustc_codegen_cranelift Auto merge of #96862 - oli-obk:enum_cast_mir, r=RalfJung 2022-07-05 09:36:29 +00:00
rustc_codegen_gcc
rustc_codegen_llvm Auto merge of #96862 - oli-obk:enum_cast_mir, r=RalfJung 2022-07-05 09:36:29 +00:00
rustc_codegen_ssa Auto merge of #96862 - oli-obk:enum_cast_mir, r=RalfJung 2022-07-05 09:36:29 +00:00
rustc_const_eval Auto merge of #96862 - oli-obk:enum_cast_mir, r=RalfJung 2022-07-05 09:36:29 +00:00
rustc_data_structures
rustc_driver Fix bug in rustdoc -Whelp 2022-07-02 02:11:49 -05:00
rustc_error_codes
rustc_error_messages
rustc_errors errors: introduce DecorateLint 2022-07-05 16:00:20 +01:00
rustc_expand Auto merge of #98446 - nnethercote:derive-no-match-destructuring, r=scottmcm 2022-07-04 01:06:54 +00:00
rustc_feature
rustc_fs_util
rustc_graphviz
rustc_hir
rustc_hir_pretty clean up the borrowing in rustc_hir_pretty 2022-07-03 18:51:14 +02:00
rustc_incremental
rustc_index
rustc_infer InferSource::GenericArg, check for contains 2022-07-04 14:04:07 +02:00
rustc_interface Auto merge of #98570 - SparrowLii:deadlock, r=cjgillot 2022-07-03 02:05:14 +00:00
rustc_lexer
rustc_lint macros: add diagnostic derive for lints 2022-07-05 16:00:21 +01:00
rustc_lint_defs Auto merge of #97235 - nbdd0121:unwind, r=Amanieu 2022-07-02 14:06:27 +00:00
rustc_llvm
rustc_log
rustc_macros macros: add diagnostic derive for lints 2022-07-05 16:00:21 +01:00
rustc_metadata Auto merge of #97235 - nbdd0121:unwind, r=Amanieu 2022-07-02 14:06:27 +00:00
rustc_middle errors: introduce DecorateLint 2022-07-05 16:00:20 +01:00
rustc_mir_build Auto merge of #98925 - Dylan-DPC:rollup-9185c9y, r=Dylan-DPC 2022-07-05 12:17:26 +00:00
rustc_mir_dataflow
rustc_mir_transform lint: LintDiagnosticBuilder into rustc_errors 2022-07-05 16:00:20 +01:00
rustc_monomorphize Auto merge of #91743 - cjgillot:enable_mir_inlining_inline_all, r=oli-obk 2022-07-02 11:24:17 +00:00
rustc_parse Auto merge of #98673 - pietroalbini:pa-bootstrap-update, r=Mark-Simulacrum 2022-07-03 06:55:50 +00:00
rustc_parse_format
rustc_passes Rollup merge of #98624 - davidtwco:translation-on-lints, r=compiler-errors 2022-07-05 16:04:32 +05:30
rustc_plugin_impl
rustc_privacy
rustc_query_impl
rustc_query_system Auto merge of #98570 - SparrowLii:deadlock, r=cjgillot 2022-07-03 02:05:14 +00:00
rustc_resolve suggest #[derive(Default)] to enums with #[default] 2022-07-04 20:46:59 +09:00
rustc_save_analysis
rustc_serialize
rustc_session incr.comp.: Make split-dwarf commandline options [TRACKED]. 2022-07-04 14:11:28 +02:00
rustc_smir
rustc_span errors: introduce DecorateLint 2022-07-05 16:00:20 +01:00
rustc_symbol_mangling
rustc_target
rustc_trait_selection lint: LintDiagnosticBuilder into rustc_errors 2022-07-05 16:00:20 +01:00
rustc_traits
rustc_ty_utils
rustc_type_ir more rustc_pass_by_value 2022-07-04 09:40:58 +02:00
rustc_typeck Rollup merge of #98761 - lcnr:need_type_info-cont, r=estebank 2022-07-05 10:42:54 +05:30