Skip to content

Commit bdc1d97

Browse files
committed
Don't mark #[naked] as used when checking #[track_caller]
1 parent 25a6910 commit bdc1d97

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_passes/src/check_attr.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ impl CheckAttrVisitor<'tcx> {
171171
target: Target,
172172
) -> bool {
173173
match target {
174-
_ if self.tcx.sess.contains_name(attrs, sym::naked) => {
174+
_ if attrs.iter().any(|attr| attr.has_name(sym::naked)) => {
175175
struct_span_err!(
176176
self.tcx.sess,
177177
*attr_span,

0 commit comments

Comments
 (0)