Skip to content

Commit 5796865

Browse files
committed
fix(upstream): ItemKind::Trait is not field variant instead of tuple
1 parent 51044f0 commit 5796865

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

flake.lock

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/atomic_context.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ impl<'tcx> LateLintPass<'tcx> for AtomicContext<'tcx> {
349349
ItemKind::Struct(..) | ItemKind::Union(..) | ItemKind::Enum(..) => {
350350
(self.adt_callback)(i.item_id().owner_id.def_id);
351351
}
352-
ItemKind::Trait(..) => {
352+
ItemKind::Trait { .. } => {
353353
// Not exactly an ADT, but we want to track drop_preempt_count on traits as well.
354354
(self.adt_callback)(i.item_id().owner_id.def_id);
355355
}

0 commit comments

Comments
 (0)