rust/src/test/ui/empty
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
..
auxiliary Remove licenses 2018-12-25 21:08:33 -07:00
empty-attributes.rs Add checks for more empty attributes. 2021-11-18 16:10:28 -08:00
empty-attributes.stderr Add checks for more empty attributes. 2021-11-18 16:10:28 -08:00
empty-comment.rs Remove licenses 2018-12-25 21:08:33 -07:00
empty-comment.stderr Bless tests 2021-10-15 02:36:58 -05:00
empty-linkname.rs Update tests for extern block linting 2021-01-13 07:49:16 -05:00
empty-linkname.stderr normalize use of backticks in compiler messages for librustc_metadata 2019-07-19 22:24:56 +02:00
empty-macro-use.rs Remove licenses 2018-12-25 21:08:33 -07:00
empty-macro-use.stderr Re-run tests with --bless 2020-09-30 12:00:59 +06:00
empty-never-array.rs Update existing tests for or-patterns 2020-02-01 22:10:58 +00:00
empty-never-array.stderr non-exhastive diagnostic: add note re. scrutinee type 2020-03-27 06:49:07 +01:00
empty-struct-braces-expr.rs Unify output of "variant not found" errors 2020-01-08 08:05:31 -08:00
empty-struct-braces-expr.stderr Modify structured suggestion output 2021-08-11 09:46:24 +00:00
empty-struct-braces-pat-1.rs Point at local similarly named element and tweak references to variants 2019-10-27 11:50:43 -07:00
empty-struct-braces-pat-1.stderr Modify structured suggestion output 2021-08-11 09:46:24 +00:00
empty-struct-braces-pat-2.rs Point at local similarly named element and tweak references to variants 2019-10-27 11:50:43 -07:00
empty-struct-braces-pat-2.stderr Modify structured suggestion output 2021-08-11 09:46:24 +00:00
empty-struct-braces-pat-3.rs Point at local similarly named element and tweak references to variants 2019-10-27 11:50:43 -07:00
empty-struct-braces-pat-3.stderr Modify structured suggestion output 2021-08-11 09:46:24 +00:00
empty-struct-tuple-pat.rs Point at local similarly named element and tweak references to variants 2019-10-27 11:50:43 -07:00
empty-struct-tuple-pat.stderr Modify structured suggestion output 2021-08-11 09:46:24 +00:00
empty-struct-unit-expr.rs Remove licenses 2018-12-25 21:08:33 -07:00
empty-struct-unit-expr.stderr Suggest removal of arguments for unit variant, not replacement 2021-11-16 20:40:35 +00:00
empty-struct-unit-pat.rs Point at local similarly named element and tweak references to variants 2019-10-27 11:50:43 -07:00
empty-struct-unit-pat.stderr Modify structured suggestion output 2021-08-11 09:46:24 +00:00