Don't mark #[naked] as used when checking #[track_caller]
This commit is contained in:
parent
25a691003c
commit
bdc1d9774b
@ -171,7 +171,7 @@ impl CheckAttrVisitor<'tcx> {
|
|||||||
target: Target,
|
target: Target,
|
||||||
) -> bool {
|
) -> bool {
|
||||||
match target {
|
match target {
|
||||||
_ if self.tcx.sess.contains_name(attrs, sym::naked) => {
|
_ if attrs.iter().any(|attr| attr.has_name(sym::naked)) => {
|
||||||
struct_span_err!(
|
struct_span_err!(
|
||||||
self.tcx.sess,
|
self.tcx.sess,
|
||||||
*attr_span,
|
*attr_span,
|
||||||
|
Loading…
Reference in New Issue
Block a user