We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6591dc6 commit cc6dcaaCopy full SHA for cc6dcaa
clippy_lints/src/attrs.rs
@@ -1000,9 +1000,7 @@ fn check_clippy_cfg_attr(
1000
) {
1001
if cfg_attr.has_name(sym::clippy)
1002
&& let Some(ident) = behind_cfg_attr.ident()
1003
- // FIXME: replace with `from_symbol` once https://github.com/rust-lang/rust/pull/121230
1004
- // is merged.
1005
- && Level::from_str(ident.name.as_str()).is_some()
+ && Level::from_symbol(ident.name, Some(attr.id)).is_some()
1006
&& let Some(items) = behind_cfg_attr.meta_item_list()
1007
{
1008
let nb_items = items.len();
0 commit comments