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.
.get
1 parent 1cf7218 commit 2d572d4Copy full SHA for 2d572d4
clippy_lints/src/allow_attribute.rs
@@ -55,7 +55,8 @@ impl LateLintPass<'_> for AllowAttribute {
55
.name == sym!(feature);
56
if let ast::AttrKind::Normal(normal) = &attr.kind;
57
if let Some(MetaItemKind::List(list)) = normal.item.meta_kind();
58
- if list[0].ident().unwrap().name == sym!(lint_reasons);
+ if let Some(symbol) = list.get(0);
59
+ if symbol.ident().unwrap().name == sym!(lint_reasons);
60
then {
61
self.lint_reasons_active = true;
62
}
0 commit comments