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) {
|
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 {
|
for &(ref name, ty) in KNOWN_ATTRIBUTES {
|
||||||
match ty {
|
match ty {
|
||||||
AttributeType::Whitelisted
|
AttributeType::Whitelisted
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue