Skip to content

Commit 2a37f7f

Browse files
committed
Add a comment to code that confused me.
1 parent 57e0248 commit 2a37f7f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/librustc_lint/builtin.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -656,6 +656,7 @@ impl LintPass for UnusedAttributes {
656656
}
657657

658658
fn check_attribute(&mut self, cx: &Context, attr: &ast::Attribute) {
659+
// Note that check_name() marks the attribute as used if it matches.
659660
for &(ref name, ty) in KNOWN_ATTRIBUTES {
660661
match ty {
661662
AttributeType::Whitelisted

0 commit comments

Comments
 (0)