fix for latest rust nightly

This commit is contained in:
Ralf Jung 2018-07-16 22:26:32 +02:00
parent f18fc27b6f
commit f9a8d2618e

View File

@ -112,7 +112,7 @@ struct Visitor<'a, 'tcx: 'a>(
);
impl<'a, 'tcx: 'a, 'hir> itemlikevisit::ItemLikeVisitor<'hir> for Visitor<'a, 'tcx> {
fn visit_item(&mut self, i: &'hir hir::Item) {
if let hir::Item_::ItemFn(.., body_id) = i.node {
if let hir::ItemKind::Fn(.., body_id) = i.node {
if i.attrs.iter().any(|attr| {
attr.name() == "test"
})