rust/compiler
bors f7c48297ce Auto merge of #88681 - ehuss:duplicate-attributes, r=petrochenkov
Check for duplicate attributes.

This adds some checks for duplicate attributes. In many cases, the duplicates were being ignored without error or warning. This adds several kinds of checks (see `AttributeDuplicates` enum).

The motivation here is to issue unused warnings with similar reasoning for any unused lint, and to error for cases where there are conflicts.

This also adds a check for empty attribute lists in a few attributes where this causes the attribute to be ignored.

Closes #55112.
2021-11-22 02:15:25 +00:00
..
rustc
rustc_apfloat
rustc_arena Add some comments. 2021-11-19 07:52:59 +11:00
rustc_ast
rustc_ast_lowering Simplify for loop desugar 2021-11-21 08:15:21 -06:00
rustc_ast_passes
rustc_ast_pretty
rustc_attr
rustc_borrowck Simplify for loop desugar 2021-11-21 08:15:21 -06:00
rustc_builtin_macros Stabilize format_args_capture 2021-11-15 10:14:29 +01:00
rustc_codegen_cranelift
rustc_codegen_gcc Remove workaround for the forward progress handling in LLVM 2021-11-14 16:35:09 +01:00
rustc_codegen_llvm Auto merge of #90382 - alexcrichton:wasm64-libstd, r=joshtriplett 2021-11-18 17:19:27 +00:00
rustc_codegen_ssa Rollup merge of #90900 - andjo403:removeLlvm12Check, r=nikic 2021-11-17 15:58:05 +01:00
rustc_const_eval Revert "require full validity when determining the discriminant of a value" 2021-11-20 12:33:04 -05:00
rustc_data_structures
rustc_driver
rustc_error_codes
rustc_errors Align multiline messages to their label (add left margin) 2021-11-20 19:19:33 +00:00
rustc_expand Stabilize format_args_capture 2021-11-15 10:14:29 +01:00
rustc_feature Check for duplicate attributes. 2021-11-18 16:10:26 -08:00
rustc_fs_util
rustc_graphviz
rustc_hir Simplify for loop desugar 2021-11-21 08:15:21 -06:00
rustc_hir_pretty
rustc_incremental
rustc_index Generate documentation in rustc rustc_index::newtype_index macro 2021-11-13 18:50:29 -06:00
rustc_infer Simplify for loop desugar 2021-11-21 08:15:21 -06:00
rustc_interface Auto merge of #90329 - nbdd0121:typeck, r=nagisa 2021-11-19 03:00:46 +00:00
rustc_lexer
rustc_lint Stabilize format_args_capture 2021-11-15 10:14:29 +01:00
rustc_lint_defs
rustc_llvm Make LLVMRustGetOrInsertGlobal always return a GlobalVariable 2021-11-19 19:33:29 -08:00
rustc_macros
rustc_metadata
rustc_middle Simplify for loop desugar 2021-11-21 08:15:21 -06:00
rustc_mir_build Simplify for loop desugar 2021-11-21 08:15:21 -06:00
rustc_mir_dataflow
rustc_mir_transform
rustc_monomorphize
rustc_parse Rollup merge of #90994 - Badel2:issue-90993, r=estebank 2021-11-20 22:33:49 +01:00
rustc_parse_format
rustc_passes Add checks for more empty attributes. 2021-11-18 16:10:28 -08:00
rustc_plugin_impl
rustc_privacy
rustc_query_impl
rustc_query_system
rustc_resolve Rollup merge of #90930 - Nilstrieb:fix-non-const-value-ice, r=estebank 2021-11-20 10:21:14 +01:00
rustc_save_analysis
rustc_serialize
rustc_session Auto merge of #90329 - nbdd0121:typeck, r=nagisa 2021-11-19 03:00:46 +00:00
rustc_span Simplify for loop desugar 2021-11-21 08:15:21 -06:00
rustc_symbol_mangling
rustc_target Auto merge of #90382 - alexcrichton:wasm64-libstd, r=joshtriplett 2021-11-18 17:19:27 +00:00
rustc_trait_selection Simplify for loop desugar 2021-11-21 08:15:21 -06:00
rustc_traits
rustc_ty_utils
rustc_type_ir
rustc_typeck Auto merge of #88681 - ehuss:duplicate-attributes, r=petrochenkov 2021-11-22 02:15:25 +00:00