about summary refs log tree commit diff
path: root/src/libsyntax/parse/parser.rs
diff options
context:
space:
mode:
authorAustin Bonander <austin.bonander@gmail.com>2018-04-17 23:19:21 -0700
committerAustin Bonander <austin.bonander@gmail.com>2018-04-29 16:01:41 -0700
commitf16d2ff7ec184de179f22322f1decd96f94ef8a7 (patch)
treed0787ffb3072a91cf8bc0c567bbf099a84ef71ff /src/libsyntax/parse/parser.rs
parentb91e6a2672a6f69e404d87fa62a5900a390622cf (diff)
downloadrust-f16d2ff7ec184de179f22322f1decd96f94ef8a7.tar.gz
rust-f16d2ff7ec184de179f22322f1decd96f94ef8a7.zip
Warn on pointless `#[derive]` in more places
This fixes the regression in #49934 and ensures that unused `#[derive]`s on statements, expressions and generic type parameters survive to trip the `unused_attributes` lint. For `#[derive]` on macro invocations it has a hardcoded warning since linting occurs after expansion. This also adds regression testing for some nodes that were already warning properly.

closes #49934
Diffstat (limited to 'src/libsyntax/parse/parser.rs')
0 files changed, 0 insertions, 0 deletions