Skip to content

Commit a5d4087

Browse files
committed
update for 14017
1 parent 16fdda3 commit a5d4087

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/tools/clippy/clippy_lints/src/disallowed_macros.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ impl LateLintPass<'_> for DisallowedMacros {
139139
| AttributeKind::ConstStability { span, .. }
140140
| AttributeKind::ConstTrait(span)
141141
| AttributeKind::Coverage(span, _)
142+
| AttributeKind::CrateName { attr_span: span, .. }
142143
| AttributeKind::DenyExplicitImpl(span)
143144
| AttributeKind::Deprecation { span, .. }
144145
| AttributeKind::DoNotImplementViaObject(span)
@@ -174,18 +175,20 @@ impl LateLintPass<'_> for DisallowedMacros {
174175
| AttributeKind::RustcBuiltinMacro { span, .. }
175176
| AttributeKind::RustcLayoutScalarValidRangeEnd(_, span)
176177
| AttributeKind::RustcLayoutScalarValidRangeStart(_, span)
178+
| AttributeKind::Sanitize { span, .. }
177179
| AttributeKind::SkipDuringMethodDispatch { span, .. }
178180
| AttributeKind::SpecializationTrait(span)
179181
| AttributeKind::Stability { span, .. }
180182
| AttributeKind::StdInternalSymbol(span)
181-
| AttributeKind::TargetFeature(_, span)
183+
| AttributeKind::TargetFeature { attr_span: span, .. }
182184
| AttributeKind::TrackCaller(span)
183185
| AttributeKind::TypeConst(span)
184186
| AttributeKind::UnsafeSpecializationMarker(span)
185187
| AttributeKind::AllowInternalUnsafe(span)
186188
| AttributeKind::Coroutine(span)
187189
| AttributeKind::Linkage(_, span)
188190
| AttributeKind::ShouldPanic { span, .. }
191+
| AttributeKind::CustomMir(_, _, span)
189192
| AttributeKind::Used { span, .. } => *span,
190193

191194
AttributeKind::CoherenceIsCore

0 commit comments

Comments
 (0)