diff options
| author | Ms2ger <ms2ger@gmail.com> | 2015-02-28 13:31:27 +0100 |
|---|---|---|
| committer | Ms2ger <ms2ger@gmail.com> | 2015-02-28 13:31:27 +0100 |
| commit | 2a37f7f07ca6bc3e3f19c6bb33b25bbc35f561a2 (patch) | |
| tree | 5bac344540785a4abdd2868666b6c66ea9f10061 | |
| parent | 57e0248d34733a94d7e341c0e5df594c84499932 (diff) | |
| download | rust-2a37f7f07ca6bc3e3f19c6bb33b25bbc35f561a2.tar.gz rust-2a37f7f07ca6bc3e3f19c6bb33b25bbc35f561a2.zip | |
Add a comment to code that confused me.
| -rw-r--r-- | src/librustc_lint/builtin.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/librustc_lint/builtin.rs b/src/librustc_lint/builtin.rs index 7a0a906e976..de3eaeda28e 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 |
