mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-11 22:02:55 +00:00
Remove ForeignMod struct.
This commit is contained in:
parent
f6827839c0
commit
d95f11bcd6
3 changed files with 3 additions and 3 deletions
|
@ -147,7 +147,7 @@ impl<'tcx> LateLintPass<'tcx> for MissingDoc {
|
||||||
hir::ItemKind::Union(..) => "a union",
|
hir::ItemKind::Union(..) => "a union",
|
||||||
hir::ItemKind::OpaqueTy(..) => "an existential type",
|
hir::ItemKind::OpaqueTy(..) => "an existential type",
|
||||||
hir::ItemKind::ExternCrate(..)
|
hir::ItemKind::ExternCrate(..)
|
||||||
| hir::ItemKind::ForeignMod(..)
|
| hir::ItemKind::ForeignMod { .. }
|
||||||
| hir::ItemKind::GlobalAsm(..)
|
| hir::ItemKind::GlobalAsm(..)
|
||||||
| hir::ItemKind::Impl { .. }
|
| hir::ItemKind::Impl { .. }
|
||||||
| hir::ItemKind::Use(..) => return,
|
| hir::ItemKind::Use(..) => return,
|
||||||
|
|
|
@ -125,7 +125,7 @@ impl<'tcx> LateLintPass<'tcx> for MissingInline {
|
||||||
| hir::ItemKind::Union(..)
|
| hir::ItemKind::Union(..)
|
||||||
| hir::ItemKind::OpaqueTy(..)
|
| hir::ItemKind::OpaqueTy(..)
|
||||||
| hir::ItemKind::ExternCrate(..)
|
| hir::ItemKind::ExternCrate(..)
|
||||||
| hir::ItemKind::ForeignMod(..)
|
| hir::ItemKind::ForeignMod { .. }
|
||||||
| hir::ItemKind::Impl { .. }
|
| hir::ItemKind::Impl { .. }
|
||||||
| hir::ItemKind::Use(..) => {},
|
| hir::ItemKind::Use(..) => {},
|
||||||
};
|
};
|
||||||
|
|
|
@ -395,7 +395,7 @@ fn print_item(cx: &LateContext<'_>, item: &hir::Item<'_>) {
|
||||||
println!("function of type {:#?}", item_ty);
|
println!("function of type {:#?}", item_ty);
|
||||||
},
|
},
|
||||||
hir::ItemKind::Mod(..) => println!("module"),
|
hir::ItemKind::Mod(..) => println!("module"),
|
||||||
hir::ItemKind::ForeignMod(ref fm) => println!("foreign module with abi: {}", fm.abi),
|
hir::ItemKind::ForeignMod { abi, .. } => println!("foreign module with abi: {}", abi),
|
||||||
hir::ItemKind::GlobalAsm(ref asm) => println!("global asm: {:?}", asm),
|
hir::ItemKind::GlobalAsm(ref asm) => println!("global asm: {:?}", asm),
|
||||||
hir::ItemKind::TyAlias(..) => {
|
hir::ItemKind::TyAlias(..) => {
|
||||||
println!("type alias for {:?}", cx.tcx.type_of(did));
|
println!("type alias for {:?}", cx.tcx.type_of(did));
|
||||||
|
|
Loading…
Reference in a new issue