diff options
| author | flip1995 <hello@philkrones.com> | 2019-06-24 18:14:04 +0200 |
|---|---|---|
| committer | flip1995 <hello@philkrones.com> | 2019-06-24 18:14:04 +0200 |
| commit | 8e087cdd98850f9bdb998ddfa6c4dfe2d4553260 (patch) | |
| tree | dabe042d99665a6ea9f1ca9f3eebedb34bdff3b7 /src/libsyntax | |
| parent | 7de6f5472812a7dde8ffba399b71a3c558cd44bf (diff) | |
| download | rust-8e087cdd98850f9bdb998ddfa6c4dfe2d4553260.tar.gz rust-8e087cdd98850f9bdb998ddfa6c4dfe2d4553260.zip | |
Use symbols in lint tool list
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/attr/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/attr/mod.rs b/src/libsyntax/attr/mod.rs index 08bea08c257..21e0f60a2e7 100644 --- a/src/libsyntax/attr/mod.rs +++ b/src/libsyntax/attr/mod.rs @@ -60,7 +60,7 @@ pub fn is_known(attr: &Attribute) -> bool { } pub fn is_known_lint_tool(m_item: Ident) -> bool { - ["clippy", "rustc"].contains(&m_item.as_str().as_ref()) + [sym::clippy, sym::rustc].contains(&m_item.name) } impl NestedMetaItem { |
