Skip to content

Commit e5dbcc2

Browse files
Make asm a named field
1 parent 49082f9 commit e5dbcc2

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

clippy_lints/src/arbitrary_source_item_ordering.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ impl<'tcx> LateLintPass<'tcx> for ArbitrarySourceItemOrdering {
362362
}
363363
} else if let ItemKind::ForeignMod { .. } = item.kind {
364364
continue;
365-
} else if let ItemKind::GlobalAsm(_) = item.kind {
365+
} else if let ItemKind::GlobalAsm { .. } = item.kind {
366366
continue;
367367
} else if let ItemKind::Use(path, use_kind) = item.kind {
368368
if path.segments.is_empty() {
@@ -467,7 +467,7 @@ fn convert_module_item_kind(value: &ItemKind<'_>) -> SourceItemOrderingModuleIte
467467
ItemKind::Macro(..) => Macro,
468468
ItemKind::Mod(..) => Mod,
469469
ItemKind::ForeignMod { .. } => ForeignMod,
470-
ItemKind::GlobalAsm(..) => GlobalAsm,
470+
ItemKind::GlobalAsm { .. } => GlobalAsm,
471471
ItemKind::TyAlias(..) => TyAlias,
472472
ItemKind::Enum(..) => Enum,
473473
ItemKind::Struct(..) => Struct,

clippy_lints/src/missing_doc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ impl<'tcx> LateLintPass<'tcx> for MissingDoc {
217217
| hir::ItemKind::Union(..) => {},
218218
hir::ItemKind::ExternCrate(..)
219219
| hir::ItemKind::ForeignMod { .. }
220-
| hir::ItemKind::GlobalAsm(..)
220+
| hir::ItemKind::GlobalAsm { .. }
221221
| hir::ItemKind::Impl { .. }
222222
| hir::ItemKind::Use(..) => note_prev_span_then_ret!(self.prev_span, it.span),
223223
}

clippy_lints/src/missing_inline.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ impl<'tcx> LateLintPass<'tcx> for MissingInline {
128128
| hir::ItemKind::Static(..)
129129
| hir::ItemKind::Struct(..)
130130
| hir::ItemKind::TraitAlias(..)
131-
| hir::ItemKind::GlobalAsm(..)
131+
| hir::ItemKind::GlobalAsm { .. }
132132
| hir::ItemKind::TyAlias(..)
133133
| hir::ItemKind::Union(..)
134134
| hir::ItemKind::ExternCrate(..)

0 commit comments

Comments
 (0)