From 2a37f7f07ca6bc3e3f19c6bb33b25bbc35f561a2 Mon Sep 17 00:00:00 2001 From: Ms2ger Date: Sat, 28 Feb 2015 13:31:27 +0100 Subject: [PATCH] Add a comment to code that confused me. --- src/librustc_lint/builtin.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/librustc_lint/builtin.rs b/src/librustc_lint/builtin.rs index 7a0a906e9766..de3eaeda28ec 100644 --- a/src/librustc_lint/builtin.rs +++ b/src/librustc_lint/builtin.rs @@ -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