You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
span_lint_and_help(cx,ITEMS_AFTER_TEST_MODULE, item.span,"an item was found after the testing module",None,"move the item to before the testing module was defined");
61
+
}};
73
62
74
-
format!("\n{}\n", snippet(cx, item.span,".."))
75
-
)// ^ Copy the item to the new location
76
-
],Applicability::MachineApplicable);
77
-
});
78
-
return;
79
-
}
80
-
}
81
-
82
-
ifletItemKind::Mod(mod_item) = item.kind{
63
+
ifmatches!(item.kind,ItemKind::Mod(_)){
83
64
for attr in cx.tcx.get_attrs(item.owner_id.to_def_id(), sym::cfg){
84
65
if_chain!{
85
66
if attr.has_name(sym::cfg);
@@ -88,8 +69,6 @@ impl LateLintPass<'_> for ItemsAfterTestModule {
0 commit comments