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 25a6910 commit bdc1d97Copy full SHA for bdc1d97
compiler/rustc_passes/src/check_attr.rs
@@ -171,7 +171,7 @@ impl CheckAttrVisitor<'tcx> {
171
target: Target,
172
) -> bool {
173
match target {
174
- _ if self.tcx.sess.contains_name(attrs, sym::naked) => {
+ _ if attrs.iter().any(|attr| attr.has_name(sym::naked)) => {
175
struct_span_err!(
176
self.tcx.sess,
177
*attr_span,
0 commit comments