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 84b1e08 commit 70db73aCopy full SHA for 70db73a
src/librustc_lint/builtin.rs
@@ -2203,7 +2203,11 @@ impl LintPass for UnstableFeatures {
2203
}
2204
fn check_attribute(&mut self, ctx: &Context, attr: &ast::Attribute) {
2205
if attr::contains_name(&[attr.node.value.clone()], "feature") {
2206
- ctx.span_lint(UNSTABLE_FEATURES, attr.span, "unstable feature");
+ if let Some(items) = attr.node.value.meta_item_list() {
2207
+ for item in items {
2208
+ ctx.span_lint(UNSTABLE_FEATURES, item.span, "unstable feature");
2209
+ }
2210
2211
2212
2213
0 commit comments