fix for latest rust nightly
This commit is contained in:
parent
f18fc27b6f
commit
f9a8d2618e
@ -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"
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user