Add a comment to code that confused me.
This commit is contained in:
parent
57e0248d34
commit
2a37f7f07c
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue