Add a comment to code that confused me.
This commit is contained in:
parent
57e0248d34
commit
2a37f7f07c
@ -656,6 +656,7 @@ impl LintPass for UnusedAttributes {
|
||||
}
|
||||
|
||||
fn check_attribute(&mut self, cx: &Context, attr: &ast::Attribute) {
|
||||
// Note that check_name() marks the attribute as used if it matches.
|
||||
for &(ref name, ty) in KNOWN_ATTRIBUTES {
|
||||
match ty {
|
||||
AttributeType::Whitelisted
|
||||
|
Loading…
Reference in New Issue
Block a user