]> git.lizzy.rs Git - rust.git/commit
Match against attribute name when validating attributes
authorTomasz Miąsko <tomasz.miasko@gmail.com>
Sun, 11 Apr 2021 00:00:00 +0000 (00:00 +0000)
committerTomasz Miąsko <tomasz.miasko@gmail.com>
Sun, 11 Apr 2021 00:00:00 +0000 (00:00 +0000)
commit985ae0b55bf9bc2e2926f75a57578a32b982b10d
tree2dfc1a01947f0806860a40e1c5fbaa8c93b491c8
parentba6275b6a9fc05fd5d93220e9a67fe64d663cb62
Match against attribute name when validating attributes

Extract attribute name once and match it against symbols that are being
validated, instead of using `Session::check_name` for each symbol
individually.

Assume that all validated attributes are used, instead of marking them
as such, since the attribute check should be exhaustive.
compiler/rustc_ast/src/ast.rs
compiler/rustc_feature/src/builtin_attrs.rs
compiler/rustc_passes/src/check_attr.rs